Finding shit Flashcards
1
Q
Find [path] [expression]
A
Recursively finds files in path that match the expression. If no arguments, it finds all files in the current directory
2
Q
find -name pattern
A
Find files and directories that match pattern
3
Q
find -iname pattern
A
Like -name, but ignores case
4
Q
find -ls
A
Performs ls on each item found
5
Q
find -mtime days
A
Find files that are days old
6
Q
find -size +(size)
A
Find files that are if size num
7
Q
find -newer file
A
Find files newer than this file
8
Q
-exec command {}
A
Run command against all found files
9
Q
Example
A
find /etc -type d -newer /etc/passwd
10
Q
locate pattern
A
Lists files that match the pattern.
Faster than find