First page Back Continue Last page Image

Arguments for find and locate

Both of these commands are designed to help you find a file

find

locate

find / -name target-file

Find target file by name starting at root

find -name ‘*’ -size +1000k

Find file with a size over 100k

find / -mtime -2 -print

Find files modified in the last 2 days

locate "*.png" -q

Locate without errors

locate "*.html" -n 20

Locate the first 20 files ending in .html

locate -c [nicole]*

Return the count of all files named nicole

https://www.youtube.com/watch?v=BZ5gsFiIKOQ

Manjaro does not like the Leading ‘*”