Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
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

 Answers
1

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.


[#42280] Friday, September 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
exceeeelh

Total Points: 21
Total Questions: 109
Total Answers: 120

Location: Marshall Islands
Member since Wed, Jan 5, 2022
2 Years ago
exceeeelh questions
Sun, Nov 20, 22, 17:08, 1 Year ago
Sat, Jan 1, 22, 08:04, 2 Years ago
Wed, May 12, 21, 05:11, 3 Years ago
;