Nguyễn Linh Trang
New member
How do I find and delete files?
Answer
But, the “find -type f” command will recursively search for only files in current directory and all sub-directories. If you only want to find files (not delete), just remove the options -delete or -exec rm {} ; or -exec rm {} + in the above commands.
Answer
But, the “find -type f” command will recursively search for only files in current directory and all sub-directories. If you only want to find files (not delete), just remove the options -delete or -exec rm {} ; or -exec rm {} + in the above commands.