Saturday, May 18, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 602  / 3 Years ago, thu, november 4, 2021, 10:52:49

Earlier, I had created some links to another folder using the following command.



sudo ln -s path_name link_name 


These links are looking similar to the folders. I am not able to differentiate between a folder and a link. Is there a way to find the difference between a folder and a link to another folder?


More From » symbolic-link

 Answers
5

You could recognize a link by either a small arrow (->) in the output of ls -l:



enter image description here



or by the distinguished color, also appearing in the output of ls, as described in this answer (test2 is the link):



enter image description here


[#21332] Saturday, November 6, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
brellked

Total Points: 63
Total Questions: 107
Total Answers: 104

Location: Morocco
Member since Fri, May 22, 2020
4 Years ago
;