Processing Files Flashcards

1
Q

cat

A

Displays a file on standard output (can be used to concatenate several files into one big file).

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

cut

A

Extracts specified sections from each line of text in a file.

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

dd

A

Copies blocks of data from one file to another (used to
copy data from devices).

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

diff

A

Compares two text files and finds any differences.

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

expand

A

Converts all tabs into spaces.

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

file

A

Displays the type of data in a file.

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

fold

A

Wraps each line of text to fit a specified width.

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

grep

A

Searches for regular expressions within a text file.

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

less

A

Displays a text file, one page at a time (can go backward also).

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

lpr

A

Prints files.

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

more

A

Displays a text file, one page at a time (goes forward only).

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

nl

A

Numbers all nonblank lines in a text file and prints the lines to standard output.

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

paste

A

Concatenates corresponding lines from several files.

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

patch

A

Updates a text file using the differences between the original and revised copy of the file.

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

sed

A

Copies a file to standard output while applying specified editing commands.

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

sort

A

Sorts lines in a text file.

17
Q

split

A

Breaks up a file into several smaller files with specified size.

18
Q

tac

A

Reverses a file (last line first and so on).

19
Q

tail

A

Displays the last few lines of a file.

20
Q

tr

A

Substitutes one group of characters for another throughout a file.

21
Q

uniq

A

Eliminates duplicate lines from a text file.

22
Q

wc

A

Counts the number of lines, words, and characters in a text file.

23
Q

zcat

A

Displays a compressed file (after decompressing).

24
Q

zless

A

Displays a compressed file one page at a time (can go backward also).

25
Q

zmore

A

Displays a compressed file one page at a time.