Find Commands: Difference between revisions

From Cramsession
Jump to navigationJump to search
✍️ Verified Author: MflavellClick to view professional profile & credentials
No edit summary
No edit summary
Line 1: Line 1:
<h2>Files in current folder modifed toay</h2>
=Files in current folder modified today=


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


<i>-1 can be changed to another value to o back further </I>
''''-1 can be changed to another value to o back further''''




<h2>Recursive find</h2>
=Recursive find=


  find . -iname "<i>fidnme</i>*"
  find . -iname "<i>fidnme</i>*"
=Find a file that starts with name_=
find . -type f -name "name_*"

Revision as of 18:05, 29 August 2024

Files in current folder modified today

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

'-1 can be changed to another value to o back further'


Recursive find

find . -iname "fidnme*"

Find a file that starts with name_

find . -type f -name "name_*"