Find Tips

From ConShell

Jump to: navigation, search

This command will quickly remove any files from the current folder and below that have not be modified in the last 14 days.

 find . -mtime +14 -exec rm -f {} \;

This incantation can be used to discover & cleanup .rpmnew files that RPM installs.

find /etc -name "*.rpmnew" -print
find /etc -name "*.rpmnew" -exec rm {} \;

Find files that are larger than 1G (one gigabyte)

sudo find / -size +1G -print
Personal tools


check web page