Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Nice answer, but it doesn't answer the Question, instead it would answer how to convert-a-hardlink-into-a-symbolic-link Commented Dec 6, 2014 at 9:07
  • I created a script that takes working directory and source directory as options: gist.github.com/rubo77/7a9a83695a28412abbcd Commented Dec 6, 2014 at 11:59
  • You should add -v for verbose to the ln command, and at first just write echo ln -sfv "$target" "$file" to see what would happen, otherwise this would be really dangerous. If everything looks fine, you can remove the echo Commented Dec 7, 2014 at 1:48
  • The question says the man page explains how to go symlink->hardlink and there was already an answer for that; I answered the remaining question about how to go back. Adding a -v only tells you what blew up, but yes, good point about running with an echo at first. Commented Dec 7, 2014 at 5:48