Lesson 3 Flashcards

1
Q

>

A

Redirects standard output of a command to a file, overwriting the previous content

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

> >

A

Redirects standard output of a command to a file, appending the new content to the previous content

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

Redirects standard input to command

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

|

A

Redirects standard output of a command to another command

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

wc

A

Gives word count (lines, words and characters)

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

sort

A

Sorts lines of text alphabetically

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

uniq

A

Filters duplicate, adjacent lines of text

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

grep

A

Searches text for a pattern and outputs it

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

sed

A

Searches text for pattern, modifies it, and outputs it
sed ‘s/originalWord/replacementWord/’ file.txt (s = substitute. Only substitutes first instance in a line)
sed ‘s/originalWord/replacementWord/g’ file.txt (g = global. Substitutes all instances)

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