2.1 Finding Your Way - Command Line Basics Flashcards

1
Q

Which of the following commands displays the command history?

A) last
B) history
C) hist
D) tail

A

history

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

What is the PATH environment variable used for?

A) To define the network routing table
B) To define which directories the interpreter
looks in for executables
C) To define the default path for storage
D) To define the default directory of saved
files

A

To define which directories the interpreter looks in for executables

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

What does “Bash” stand for?

A) Bad-Ass Shell
B) Bourne Shell
C) Bash Shell (it’s a recursive acronym)
D) Bourne-Again Shell

A

Bourne-Again Shell

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

The echo command is used to __.

A) Print characters to the screen
B) Test network connectivity between hosts
C) Write to the standard output
D) Repeatedly print or “echo” text until stopped

A

Write to the standard output

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

Which of the following options would output the exact string of: This “is” ‘some’ \ntext using the echo command? (Pick 2)

A) echo “This /”is/” ‘some’ /\ntext”

B) echo -e “This "is" ‘some’ \ntext”

C) echo -e “This "is" ‘some’ \\ntext”

D) echo “This "is" ‘some’ \ntext”

A

echo -e “This "is" ‘some’ \\ntext”

echo “This "is" ‘some’ \ntext”

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

What command will display all enviroment variables?

A

env

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

What command will show who is logged on and what they are doing?

A

w

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

What command will show a listing of last logged in users?

A

last

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