3 ms·
I just do it the one way, get the error that the destination already exists, then swap them.
by TACIXAT 7y ago
I just do it the one way, get the error that the destination already exists, then swap them.
- skzo 7y agoMe too, I was starting to think I was the crazy one after reading the other comments :)
- hanspeter 7y agoI 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.
- account42 7y agoExcept if b is a directory, then ln -s a b will create a symlink at b/a which points to a.