2014-02-17 17:59:07 +01:00
|
|
|
# ln
|
|
|
|
|
2019-02-11 19:00:49 +01:00
|
|
|
> Creates links to files and directories.
|
2014-02-17 17:59:07 +01:00
|
|
|
|
2019-02-08 01:31:19 +01:00
|
|
|
- Create a symbolic link to a file or directory:
|
2014-02-17 17:59:07 +01:00
|
|
|
|
2019-02-08 01:31:19 +01:00
|
|
|
`ln -s {{path/to/file_or_directory}} {{path/to/symlink}}`
|
2014-02-17 17:59:07 +01:00
|
|
|
|
2015-08-10 20:03:34 +02:00
|
|
|
- Overwrite an existing symbolic to point to a different file:
|
2015-03-15 12:40:20 +01:00
|
|
|
|
2016-07-22 22:24:06 +02:00
|
|
|
`ln -sf {{path/to/new_file}} {{path/to/symlink}}`
|
2015-03-15 12:40:20 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Create a hard link to a file:
|
2014-02-17 17:59:07 +01:00
|
|
|
|
2015-08-10 20:03:34 +02:00
|
|
|
`ln {{path/to/file}} {{path/to/hardlink}}`
|