Pipes and Redirects Flashcards

1
Q

How do you redirect echo “hello” to output.txt?

A

echo “hello” > output.txt

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

How do you redirect errors to error.txt?

A

2> error.txt

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

How do you append to output.txt?

A

> > output.txt

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

How do you redirect standard error into standard output?

A

2>&1

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