News for hackers. Stuff that matters.
Re:Everything I googled in a week as a professional software... by TACIXAT on Friday September 06, 2019 @02:34PM (#20898412)
I just do it the one way, get the error that the destination already exists, then swap them.
Re:Everything I googled in a week as a professional software... by hanspeter on Saturday September 07, 2019 @03:24AM (#20902341)
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.
Re:Everything I googled in a week as a professional software... by skzo on Friday September 06, 2019 @06:09PM (#20900338)
Me too, I was starting to think I was the crazy one after reading the other comments :)
Re:Everything I googled in a week as a professional software... by account42 on Monday September 09, 2019 @04:39AM (#20916256)
Except if b is a directory, then ln -s a b will create a symlink at b/a which points to a.