Find

From The Linux Source
Revision as of 22:55, 9 May 2017 by Support (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Cleanup/remove files older than 14 days

# find /path/dir -daystart -mtime +14 -type f -delete

Find/change dir perms (or execute a command based on find)

# find /path/dir -type d -exec chmod g+rxs '{}'\;