3 ms·
What? Yes it does. You are confusing mv and cp.
by dmd 4y ago
What? Yes it does. You are confusing mv and cp.
- rileymat2 4y agoThis is a pretty good example. Sure, we should know our tools, but This is not intuitive behavior if you don't know. https://superuser.com/questions/101676/is-there-some-difference-between-mv-and-cp-rm-the-old-file-on-unix https://superuser.com/questions/101676/is-there-some-differe... It is not until the last comment of the accepted answer that you get to the difference in permissions. (along with the answers that are not accepted as best)
- mnw21cam 4y agoOr the parent could be trying to mv a file from one filesystem to another. In that case, mv will have to revert to a copy-then-delete operation, and the user may not have the permissions necessary to set up the new file with all the same metadata as the original.
- dmd 4y agoGood point.