Skip to content

Instantly share code, notes, and snippets.

@rubo77
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubo77/dc048d1a4dcf2d09c3a4 to your computer and use it in GitHub Desktop.
Save rubo77/dc048d1a4dcf2d09c3a4 to your computer and use it in GitHub Desktop.
convert symbolic links to hardlinks with `ln -f`
$ mkdir /tmp/test
$ cd /tmp/test
$ touch original
$ ln -s original link
$ ls -li
3802330 lrwxrwxrwx 1 14 Dec 6 09:52 link -> original
3802269 -rw-rw-r-- 1 0 Dec 6 09:52 original
$ ln -f original link
$ ls -li
3802269 -rw-rw-r-- 2 0 Dec 6 09:56 link
3802269 -rw-rw-r-- 2 0 Dec 6 09:56 original
@rubo77
Copy link
Author

rubo77 commented Dec 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment