Quantcast
Channel: User Dennis Williamson - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 61

Answer by Dennis Williamson for What is the difference between find . and find . -print

$
0
0

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.


Viewing all articles
Browse latest Browse all 61

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>