Find File and Directories Flashcards Preview

Linux > Find File and Directories > Flashcards

Flashcards in Find File and Directories Deck (8)
Loading flashcards...
1
Q

Which command should we use for finding files and directories?

A

find

2
Q

What is the -mtime option in the find command?

A

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

3
Q

Name some options of the find command?

A

size, exec, name, iname

4
Q

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

A

locate

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.

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.

7
Q

Is locate always present in Linux Systems?

A

No, sometimes is off by default.

8
Q

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

A

iname ignores case. name is case sensitive