Find

From Notepedia
Jump to: navigation, search

Finds files are older than 5 days, change to -5 to find newer than 5 days

# find ./ -mtime +5 -exec rm {} \;

Finds all files with the group of firebird AND the user NOT wwwrun

# find ./ -group firebird -a ! -user wwwrun

Find biggest directories (not find command)

# du -sk * | sort -nr | head