ch1+2. Intro and Basic Tasks Flashcards

1
Q

What shell does the course focus on?

A

Bash Shell

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

What does Bash stand for?

A

Bourne Again Shell

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

What are the parts of a Bash shell command?

A

Command, Options, Argument

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

Is the linux CLI case sensitive?

A

Yes

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

VIM

A

Linux pre-installed text editor

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

VIM insert command

A

-i

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

VIM command to exit ‘insert’

A

esc

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

VIM command to save and exit

A

‘:wq’

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

What key to auto-complete commands?

A

tab

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

What does bold text in a command manual signify?

A

Type exactly as shown

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

What does italic text in a command manual signify?

A

Replace with appropriate argument.

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

What are ’-abc’ ?

A

Options

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

What are ‘-a|-b’ ?

A

Either/Or options

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

What does ‘man -a command’ do?

A

Finds matching queries inside the manual of the command.

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

What does ‘man -D command’ do?

A

Prints debugging information on the command.

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

What does ‘man -f command’ do?

A

Short command description.

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

What does ‘man -h command’ do?

A

Prints help options.

18
Q

What does ‘man -k .’ do?

A

Prints all manual pages where ‘.’ is a regex for any character. You could also search for other strings.

19
Q

Key to reach the top of a man page?

A

Home key

20
Q

Key to reach the bottom of a man page?

A

End key

21
Q

Keys to move up or down on a man page?

A

Page up - Page down

22
Q

In a man page, what key can begin a search?

A

/ or a forward slash

23
Q

In a search of a man page, what key can move to the next occurrence of the search?

A

n

24
Q

In a search of a man page, what key can navigate to the previous occurrence of the search string?

A

‘p’

25
Q

In a man page, what key can quit out of the man page?

A

‘q’

26
Q

In what directory can you find documentation on all libraries, sys utilities, and software packages?

A

/usr/share/doc

27
Q

What is the grep command used for?

A

Search a file for a string

28
Q

What does ‘grep -i dingo’ do?

A

Searches the opened file for ‘dingo’ without regard for case.

29
Q

What does the ‘echo’ command do?

A

It repeats a string as output.

30
Q

What does the ‘ls’ command do?

A

It prints the contents of the present working directory.

31
Q

What does the ‘cp’ command do?

A

Copies a file, and can save the copy to a new location.

32
Q

What does the ‘cd’ command do?

A

It stands for ‘change directory’ and it can accept both relative and absolute file paths as arguments.

33
Q

What does the ‘clear’ command do?

A

Clears the output of the terminal.

34
Q

What does the ‘cat’ command do?

A

Prints the contents of a file.

35
Q

What does the ‘less’ command do?

A

Prints the file, page by page. Exit the file with the ‘q’ key.

36
Q

What does the ‘sudo’ command do?

A

‘super user do’ forces the terminal to execute the rest of the command as root. Depending on your user profile and privileges, the terminal may prompt you for the root password.

37
Q

What does the ‘history’ command do?

A

Prints a list of the previous commands run.

38
Q

What does the ‘ls -al’ command do?

A

‘-a’ shows hidden files
‘-l’ stands for ‘long’ and prints more information.

39
Q

What does the ‘touch’ command do?

A

Creates a file of any type.

40
Q

What does the ‘su - root’ or ‘su - ‘ command do?

A

Changes user to root after prompting for root password.

41
Q

What does the ‘apropos compress’ command do?

A

It returns all commands where ‘compress’ appears in the manual for the command.

42
Q

What does the command ‘whatis [command]’ do?

A

Prints a brief description of the given command.