Chp 1.2 Flashcards
(24 cards)
>
Creates a new file containing standard output. If the specified file exists, it’s overwritten. No file descriptor necessary.
>
Creates a new file containing standard output. If the specified file exists, it’s overwritten. No file descriptor necessary.
> >
Appends standard output to the existing file. If the specified file doesn’t exist, it’s created. No file descriptor necessary.
2>
Creates a new file containing standard error. If the specified file exists, it’s overwritten. File descriptor necessary.
2»
Appends standard error to the existing file. If the specified file doesn’t exist, it’s created. File descriptor necessary.
&>
Creates a new file containing both standard output and standard error. If the specified file exists, it’s overwritten. No file descriptors necessary.
Sends the contents of the specified file to be used as standard input. No file descriptor necessary.
<
Accepts text on the following lines as standard input. No file descriptor necessary.
<>
Causes the specified file to be used for both standard input and standard output. No file descriptor necessary.
/dev/null
Device which is null and discard output to it.
(or a pipe)
A pipe redirects the first program’s standard output to the second program’s standard input.
tee
Used in conjunction with data pipes so that a program’s output can be both stored and viewed immediately.
xargs
The xargs command builds a command from its standard input.
> >
Appends standard output to the existing file. If the specified file doesn’t exist, it’s created. No file descriptor necessary.
2>
Creates a new file containing standard error. If the specified file exists, it’s overwritten. File descriptor necessary.
2»
Appends standard error to the existing file. If the specified file doesn’t exist, it’s created. File descriptor necessary.
&>
Creates a new file containing both standard output and standard error. If the specified file exists, it’s overwritten. No file descriptors necessary.
Sends the contents of the specified file to be used as standard input. No file descriptor necessary.
<
Accepts text on the following lines as standard input. No file descriptor necessary.
<>
Causes the specified file to be used for both standard input and standard output. No file descriptor necessary.
/dev/null
Device which is null and discard output to it.
(or a pipe)
A pipe redirects the first program’s standard output to the second program’s standard input.
tee
Used in conjunction with data pipes so that a program’s output can be both stored and viewed immediately.
xargs
The xargs command builds a command from its standard input.