AZ.dev

Linux & Shell

Command-line tools, scripting, and system administration

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: Why realpath, Not readlink -f readlink -f is the common answer on Linux, but -f is a GNU extension.
shellpathrealpathreadlinkmacos