Linux & Shell
Command-line tools, scripting, and system administration
Printable cheat sheets for Linux & Shell
How-to guides
Run a command on every file find matches
To run a command on each file find matches, use -exec with {} as the placeholder and a terminator.
findexecshellfilesunix
Find files modified within a certain time range
To find files by age, use find's -mtime flag.
findmtimeshellfilesunix
Get the full (absolute) path of a file
Resolve any relative path to its full, absolute path.
shellpathrealpathreadlinkmacos