mirror of https://github.com/CrimsonTome/tldr.git
20 lines
439 B
Markdown
20 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}}`
|