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