Pipes and Redirects Flashcards
1
Q
How do you redirect echo “hello” to output.txt?
A
echo “hello” > output.txt
2
Q
How do you redirect errors to error.txt?
A
2> error.txt
3
Q
How do you append to output.txt?
A
> > output.txt
4
Q
How do you redirect standard error into standard output?
A
2>&1