Commanding The Command Line Flashcards

1
Q

Command to lookup, give information on and explain options for each command

A

man

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Count the number of lines in a file or output

A

wc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly