Find File and Directories Flashcards
How to find files and directories in the file system.
Which command should we use for finding files and directories?
find
What is the -mtime option in the find command?
it let’s you find files that are n days old
Name some options of the find command?
size, exec, name, iname
What’s another command (apart from find) to find files and directories in Linux?
locate
What’s the difference between locate and find?
find works in real time, locate needs to wait until the file or directory is index.
Which is faster, locate or find?
locate is faster, but it might happen that what you’re trying to find is not index yet, so locate won’t find it.
Is locate always present in Linux Systems?
No, sometimes is off by default.
What’s the differente between -name and -iname for find command?
iname ignores case. name is case sensitive