It is sometimes useful to use -print
explicitly when you are performing another action so the filename is displayed as that action is performed.
find . -print -delete
would be similar to
rm -rfv *
where -print
corresponds to -v
. If you don't include -print
then the filenames aren't displayed.
In order to make the rm
command even more similar, by the way, issue this Bash command first
shopt -s dotglob
which will make the *
match dot (hidden) files.