2.1 Finding Your Way - Command Line Basics Flashcards
Which of the following commands displays the command history?
A) last
B) history
C) hist
D) tail
history
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
To define which directories the interpreter looks in for executables
What does “Bash” stand for?
A) Bad-Ass Shell
B) Bourne Shell
C) Bash Shell (it’s a recursive acronym)
D) Bourne-Again Shell
Bourne-Again Shell
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
Write to the standard output
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”
echo -e “This "is" ‘some’ \\ntext”
echo “This "is" ‘some’ \ntext”
What command will display all enviroment variables?
env
What command will show who is logged on and what they are doing?
w
What command will show a listing of last logged in users?
last