1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 09:17:57 +01:00
tldr/pages/common/ln.md
Waldir Pimenta 0d0180c172 add a separate example for overwriting a symlink
to make it clear what the -T option does,
as discussed in #180
2015-03-15 11:40:20 +00:00

19 lines
439 B
Markdown

# ln
> Creates links to files and folders
- create a symbolic link to a file or folder
`ln -s {{path/to/original/file}} {{path/to/link}}`
- overwrite a symbolic link to a file
`ln -sf {{path/to/new/original/file}} {{path/to/file/link}}`
- overwrite a symbolic link to a folder
`ln -sfT {{path/to/new/original/file}} {{path/to/folder/link}}`
- create a hard link to a file or folder
`ln {{path/to/original/file}} {{path/to/link}}`