The idea struck me from nowhere and I find it weird nobody has asked this before but...
How come nobody remembered to create an option to rm which would allow one to see the effect of the rm command but without actually doing it?
Code:
rm -s some_dir_to_be_deleted/
or/and
Code:
rm --dry-run some_dir_to_be_deleted/
from apt-get's man page:
-s, --simulate, --just-print, --dry-run, --recon, --no-act
No action; perform a simulation of events that would occur but do
not actually change the system. (...)
Bookmarks