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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

find -name pattern

A

Find files and directories that match pattern

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

find -iname pattern

A

Like -name, but ignores case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

find -ls

A

Performs ls on each item found

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

find -mtime days

A

Find files that are days old

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

find -size +(size)

A

Find files that are if size num

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

find -newer file

A

Find files newer than this file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

-exec command {}

A

Run command against all found files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Example

A

find /etc -type d -newer /etc/passwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

locate pattern

A

Lists files that match the pattern.

Faster than find

How well did you know this?
1
Not at all
2
3
4
5
Perfectly