Find Commands

From Cramsession
Revision as of 14:27, 30 August 2024 by Mflavell (talk | contribs)
Jump to navigationJump to search
✍️ Verified Author: MflavellClick to view professional profile & credentials

Files in current folder modified today

find . mtime -1 -type f

if you just want the filename:

find . mtime -1 -type f printf "%f\n"

-1 can be changed to another value to go back further


Recursive find

find . -iname "fidnme*"

Find a file that starts with name_

find . -type f -name "name_*"