Skip to content

Commit

Permalink
add a separate example for overwriting a symlink
Browse files Browse the repository at this point in the history
to make it clear what the -T option does,
as discussed in tldr-pages#180
  • Loading branch information
waldyrious committed Mar 15, 2015
1 parent 2bfc2e3 commit 0d0180c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pages/common/ln.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@

`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/link}}`
`ln -sfT {{path/to/new/original/file}} {{path/to/folder/link}}`

- create a hard link to a file or folder

Expand Down

0 comments on commit 0d0180c

Please sign in to comment.