Search/Find

Find a file by name

>_ find / -iname "[query]"
copy

Find all path names containing a phrase

>_ locate [query]
copy

Find the path of an executable

>_ which [command]
copy

Find location of binary/source/man files for a command

>_ whereis [command]
copy

Search for pattern in output of command

>_ history | grep [phrase]
copy

Find modified files since last 60 minutes

>_ find / -mmin -60
copy

Find changed files since last 60 minutes

>_ find / -cmin -60
copy

FInd all files which are accessed 7 days back

>_ find / -atime 7
copy

Search for pattern in file

>_ grep [query] [file]
copy

Find all files which are greater than 10MB and less than 100MB

>_ find / -size +10M -size -100M
copy
Copied to clipboard
free 100$ digital ocean credit