Commanding The Command Line Flashcards
1
Q
Command to lookup, give information on and explain options for each command
A
man
2
Q
Locate files based on search parameters
A
find -type f -iname (name to search for)
find -type d -iname (name of directory to search for)
-iname (I indicates, not case sensitive in search)
3
Q
Command to search contents within a file
A
grep
grep 1st_item|2nd_item|3rd…
grep -i (case insensitive)
grep -il (l used to return the file name)
4
Q
Count the number of lines in a file or output
A
wc