Chapter 1 Exploring Linux Commands Flashcards

1
Q

Pg 14 Ryan

What is the Command Line for the manual?

A

man man

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

pg 14

whats the command to view the entire environment?

A

env

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

pg 18

This Symbol creates a new file containing standard output. If the specified file exist, its over written.No File Descriptor necessary

A

>

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

file descriptors

A

An identification method to describe a program’s input, output, and error
stream as a file.

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

This Symbol Appends Standard output to the existing file. If the specified file doesn’t exist, it’s created. No File Descriptor necessary

A

> >

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

pg 36

Which Command represents the start of a line?

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

pg 36

Which Command represents the end of a line?

A

$

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

pg 19 and 20

What can be used to link together multiple programs so that the output of one program becomes the input of another?

A

the pipe character is the vertical bar ( | )

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

What do parentheses do in Linux?

A

They are often used to specify how operators are to be applied.

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

pg 36

What is grep?

A

it searches for files that contain a specified string and returns the name of the file and (if its a text file) a line of context for that string.

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

in the event , if you cant find the command you want or if you change your mind and want to terminate the search what command do you press?

A

Ctrl+G

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

PG 11
to retrieve the last command in your shell history what do you type? It will not only show you the command you recalled but execute it as well.

A

!! enter

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

How can you use the numeric sort?

A

you can sort by using the -n or –numeric-sort option.

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

what is the command option to break the input file into pieces of size bytes?

A

-b size or –bytes

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

pg 6

What command will show you the path of the directory in which you are currently working?

A

the pwd command

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

What does the uniq command do?

A

by default it outputs a file without any duplicate lines from the input file.

17
Q

pg 28

what does the fmt command do?

A

it reformats paragraphs within a file

18
Q

what is the function of the tail command? pg 32

A

It displays the last few lines of a file

19
Q

How many lines is the tail command by default? pg 32

A

10 lines

20
Q

whats the difference between grep and egrep?

A

the grep program uses basic regular expressions by default , but egrep uses extended regular expressions by default.