Search Flashcards
1
Q
“grep” stands for
A
Global Regular Expression Print
2
Q
grep pattern file
A
Search for “pattern” in “file”
3
Q
grep -r pattern directory
A
Search recursively for “pattern” in “directory”
4
Q
locate name
A
Find files and directories by “name”
5
Q
find /home/john -name ‘prefix*’
A
Find files in “/home/john” that start with “prefix” (* is a wildcard)
6
Q
find /home -size +100M
A
Find files larger than 100MB in “home”
7
Q
whereis program
A
Display the location of the binary, source and manual page files of “program”
8
Q
which program
A
Display the path of the executable that would run if “program” is executed