Simple Redirections Flashcards

1
Q

Standard error

A

2

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

Redirection examples

A

Format:

1) command 2>&1 | less
2) command >

Examples:

1) ls > dirlist 2>&1

direct both standard output and standard error to the file dirlist, while the command

2) ls 2>&1 > dirlist

direct standard output to dirlist

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

Standard output

A

1

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

2 important symbols

A

1) >
2) |

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

Standard input

A

0

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

read from standard input and write to standard output and files

A

tee command

eg.

tee -a

  • appending input to the files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly