Searching and Extracting Data From Files Flashcards

1
Q

Command Line Pipe / Pipeline

A

The output of first command is used and input for the second command

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

Xargs command

A

Enables a user to generate command line options from files or other programs’ output

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

Standard Output

A

Normal program messages

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

Standard Error

A

Any error messages

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

/dev/null

A

Device file that serves as a trash bin for output/errors

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

cat command

A

display contents of a file.

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

wc command

A

Word count of file
-l line count

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

head -# command

A

Return first # things from a file

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

tail -# command

A

Return last # things from a file

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

Regular Expressions

A
  • A way to describe patterns that a user might want to look for in data files
  • Similar to wild cards
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

File-Archiving Tool

A

Collects a group of files into a single “package” file to easily move around on a single system

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

tar file.tar /dir command

A

(Tape archiver)
Used to archive various data files into a single files (archive file) while the original files remain on the disk

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

tarball

A

Archive file created from tar command

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

grep command

A

Search inside a file
Search for file that contain a specified string

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

/dev

A

A virtual or pseudo filesystem used to interface with the kernel and system as a whole but not with individual processes

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

tar -c command

A

Create a new .tar archive file

17
Q

tail/head -c

A

Print last/firs x bytes of data to the screen

18
Q

cat -n

A

Display line numbers with the text of a file to the screen

19
Q

tail -f command

A

Print the last 10 lines of a file (usually a log file) and continue to print out new lines to the screen as they are added to the file