Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
TACIXAT
· 7y ago · 0 comments
I just do it the one way, get the error that the destination already exists, then swap them.
Comments
[–]
hanspeter
7y ago
I think most people just feel this is risky. What if you overwrite your file? If it was a cp command, that's what would happen.
[–]
skzo
7y ago
Me too, I was starting to think I was the crazy one after reading the other comments :)
[–]
account42
7y ago
Except if b is a directory, then ln -s a b will create a symlink at b/a which points to a.