Use streams, pipes and redirects Flashcards
What is stdin?
Standard Input - from keyboard
What is stdout?
Standard Output - to screen
What is stderr?
Standard Error
What redirection operator creates a new file or overwrites if the file exists for standard output?
>
What redirection operator creates a new file or appends if the file exists for standard output?
> >
What redirection operator creates a new file or overwrites if the file exists for standard error?
2>
What redirection operator creates a new file or appends if the file exists for standard error?
2»
What redirection operator creates a new file or overwrites if the file exists for standard input and error?
&>
Sends the contents of a file to be used as standard input?
<
What redirection operator would accept text on the following lines as standard input?
«
What redirection operator uses a file for standard input and error?
<>
What device is used to discard messages?
/dev/null
What command prints a message to screen as well as to a file?
tee
What command builds a command list from it arguments?
xargs (eg find ./ -name “A” | xargs rm