53
rated 0 times
[
53]
[
0]
/ answers: 1 / hits: 84394
/ 3 Years ago, thu, september 2, 2021, 9:02:54
Recently I created a link with the following:
sudo ln -n originalFileLocation
How do I delete a hard link?
More From » delete
Recently I created a link with the following:
sudo ln -n originalFileLocation
How do I delete a hard link?
You can delete it with rm
as usual: rm NameOfFile
. Note that with hard links there is no distinction between "the original file" and "the link to the file": you just have two names for the same file, and deleting just one of the names will not delete the other.