Difference between revisions of "cmd/ln"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< cmd
Jump to navigation Jump to search
(Created page with "category:Linux '''<code>ln</code>''' is the Linux command for creating a link to a file or folder. To create a relative link: ln -r --symbolic ./{{arg|existing file}} {{...")
 
Line 5: Line 5:
 
  ln -r --symbolic ./{{arg|existing file}} {{arg|name for link}}
 
  ln -r --symbolic ./{{arg|existing file}} {{arg|name for link}}
 
Relative links will still work even if the folder containing both files (the original and the link) is moved or copied.
 
Relative links will still work even if the folder containing both files (the original and the link) is moved or copied.
 +
==Notes==
 +
* [http://stackoverflow.com/questions/1347105/linux-link-all-files-from-one-to-another-directory LINUX: Link all files from one to another directory]

Revision as of 16:36, 13 November 2022

ln is the Linux command for creating a link to a file or folder.

To create a relative link:

ln -r --symbolic ./<existing file> <name for link>

Relative links will still work even if the folder containing both files (the original and the link) is moved or copied.

Notes