Find File and Directories Flashcards

How to find files and directories in the file system.

1
Q

Which command should we use for finding files and directories?

A

find

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

What is the -mtime option in the find command?

A

it let’s you find files that are n days old

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

Name some options of the find command?

A

size, exec, name, iname

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

What’s another command (apart from find) to find files and directories in Linux?

A

locate

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

What’s the difference between locate and find?

A

find works in real time, locate needs to wait until the file or directory is index.

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

Which is faster, locate or find?

A

locate is faster, but it might happen that what you’re trying to find is not index yet, so locate won’t find it.

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

Is locate always present in Linux Systems?

A

No, sometimes is off by default.

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

What’s the differente between -name and -iname for find command?

A

iname ignores case. name is case sensitive

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