5. Search Operations in Linux Flashcards
What is the command to search for files in a directory hierarchy?
find
What is an expression?
It is multiple positional options.
What is the command to find a file with a specific name?
find -name
What is the command to specificly find files?
find -type f
What is the command to find specificly directories?
find -type d
What is the command to find specificly links?
find -type l
What is the command to format into a list the result of find?
find -ls
What is the command to find empty files?
find -empty
What is the command to find a file based on its size in octet (bytes)?
find -size
What is the command to find a file based on permission?
find -perm
What is the command to execute something on the file we found with the find command?
-exec [command] ‘{}’ \;
What is the option to have color with the ls command?
–color
How to read multiple arguments from STDOUT and send it to another STDIN?
xargs