4 ms·
Ha! My trick is to ln -s a b then look at the link with ls -l, then remove my garbage! Your way is much better.
by throwaway744678 7y ago
Ha! My trick is to
ln -s a b
then look at the link with ls -l, then remove my garbage!
Your way is much better.
- TACIXAT 7y agoI 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.