mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-01-02 22:12:50 +03:00
5554a6d2a4
-T is not present on my system, and the behavior itself is completely unintuitive. How exactly do you overwrite a directory? Do you recursively delete its children?
16 lines
333 B
Markdown
16 lines
333 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}}`
|
|
|
|
- create a hard link to a file or folder
|
|
|
|
`ln {{path/to/original/file}} {{path/to/link}}`
|