Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
25
rated 0 times [  25] [ 0]  / answers: 1 / hits: 1464  / 2 Years ago, sat, march 12, 2022, 6:57:56

I'm wondering if there is a difference between going to a terminal and typing ln -s path 'path or just right clicking on something and selecting make link.


More From » nautilus

 Answers
6

There is very little difference. To test this I created a new directory with a file "bug3.odt".



I then created two links to it using the command line



ln -s bug3.odt bug_ln and ln -s /home/warren/qaz/bug3.odt bug_ln2 then finally went into nautilus and created a link by right clicking on the file and selecting "Make Link".



The result was as follows



warren@dell:~/qaz$ ls -la
total 36
drwxrwxr-x 2 warren warren 4096 Feb 18 20:14 .
drwxr-xr-x 69 warren warren 12288 Feb 18 20:11 ..
-rw-rw-r-- 1 warren warren 18505 Nov 12 20:11 bug3.odt
lrwxrwxrwx 1 warren warren 8 Feb 18 20:12 bug_ln -> bug3.odt
lrwxrwxrwx 1 warren warren 25 Feb 18 20:14 bug_ln2 -> /home/warren/qaz/bug3.odt
lrwxrwxrwx 1 warren warren 25 Feb 18 20:13 Link to bug3.odt -> /home/warren/qaz/bug3.odt


As you can see both bug_ln2 and Link to bug3.odt have the same owner, group, permissions and link to the same location. Right clicking in nautilus is equivalent to using ln -s with the full path to the file.



It is also possible to create a link by holding down CTRL+SHIFT and dragging the file. This works in exactly the same way: equivalent to using ln -s with the full path to the file.


[#32624] Monday, March 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ampust

Total Points: 133
Total Questions: 109
Total Answers: 111

Location: Reunion
Member since Fri, Jul 22, 2022
2 Years ago
;