ln
Makes a link to a file
ln [options] existing-file new-link
ln [options] existing-file-list directory
The first format creates a link between an existing file and a new filename. The second format links existing files into a different directory. The new links have the same simple filenames as the original files but have different full pathnames.
By default ln makes hard links. A hard link to a file is indistinguishable from the original filename. All hard links to a file must be in the same filesystem as the original file.
You can also use ln to create symbolic links. Unlike a hard link, a symbolic link can exist in a different filesystem from the linked-to file. Also, a symbolic link can connect to a directory. Refer to page 126 for more ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access