Viewing Text and Redirecting Output Flashcards

1
Q

What command is a used as a file perusal filter for crt viewing.

A

more

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

What command provides a filter for paging through text one screenful at a time?

A

more

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

What command outputs the first part of files? And what option specifies the number of lines to print rather then the default of 10?

A

head
-n

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

What prints lines matching a pattern?

A

grep

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

What are notable options of grep?

A

-i which ignores case
-R which reads files under each directory recursively

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

A text viewing utility similar to more but provides more features (allows backward movement)

A

less

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

What outputs the last part of files

A

tail

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

What does the -n and -f option do for tail

A

-n option specifies the number of lines and -f is used to append data as the file grows (a log file)

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

Sort lines of text files

A

sort

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

The standard input stream

A

0 stdin

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

The standard output stream

A

1 standout

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

The standard error stream

A

2 stderr

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

Output redirection symbols

A

> > >

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

Input redirection

A

< «

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

Error Redirection

A

2>

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

Redirect stdout and stderror (Merge)

A

2>&1 and &>

17
Q

A pipeline or pipe allows the output of one command to serve as the input of another command

A

pipeline redirection