rm /home/john/some/file.txt
But you accidentally type:
rm /home/john some/file.txt
It says:
rm: cannot remove '/home/john': Is a directory
Instead of john not having a home directory anymore.
And people aren't going to use a dry run option or interactive confirmation every time they run a simple command like that.
- listing how many files/directories would be moved
- listing how many files/directories would be overwritten
- telling whether the transfer will cross drives (especially for mv)
reasonably speaking this should not be included in the base posix cp and mv, but could be maybe provided as intrinsics in bash for example
rm /home/john/some/file.txt
But you accidentally type:
rm /home/john some/file.txt
It says:
rm: cannot remove '/home/john': Is a directory
Instead of john not having a home directory anymore.
And people aren't going to use a dry run option or interactive confirmation every time they run a simple command like that.