Linux Fundamentals
16% of the examWhat this topic covers
Work with Linux files and permissions using command-line tools. Candidates should be able to find older files on a filesystem and grant a service account group access without changing ownership.
Why does a find command add -xdev and -type f when cleaning up old files?
-xdev keeps find from descending into directories on other filesystems. -type f selects only regular files, and -mtime +7 picks files modified more than seven 24-hour periods ago. Together they keep the cleanup limited to regular files on the current filesystem.