Session 2 Flashcards
1
Q
Which of the following is the most popular command line shell used in most Linux distributions today? A. C shell (csh) B. Korn (ksh) C. Bash (GNU Bourne Again Shell) D. Z Shell (zsh)
A
C. Bash (GNU Bourne Again Shell) (Your Answer)
2
Q
Which keyboard character tells a user that they are in basic user text mode in the Bash shell command prompt? A. # B. $ C. & D. @
A
B. $ (Your Answer)
3
Q
If you are working in a Linux command line shell and you would want to see which directory you are currently working. What command could you type to see this? A. pwd B. ls C. touch D. echo
A
A. pwd (Your Answer)
4
Q
If you are working in a shell command line and wanted to see a more detailed view of your directories, which parameter option could you add to the ls command to accomplish this? A. ls -a B. ls C. ls -z D. ls -l
A
D. ls -l
5
Q
If you are working in a shell command line and were in your Documents directory and wanted to switch views to your Downloads directly, what could you type to accomplish this? A. Downloads B. ls Downloads C. cd Downloads D. dc Downloads
A
C. cd Downloads
6
Q
If you are working in a shell command line and needed to see a list of all the hidden files in your directories what ls parameters could you use to do this? A. ls -al B. ls -l C. ls show all D. ls -all
A
A. ls -al
7
Q
Which of the following is a shortcut for the ls -al command in a shell prompt?
A. aa
B. ls ls
C. ll (note: these are two lower case L;s)
D. There is no shortcut to accomplish this.
A
C. ll (note: these are two lower case L;s)
8
Q
A(n) \_\_\_\_\_ variable is one that is active to any command or program that is run at the shell command A. present B. environment C. encased D. active
A
B. environment
9
Q
If you were working in a shell command prompt and wanted to go back to a previous command you used a few minutes ago, what keyboard character would allow you to do this? A. Down arrow key B. h C. Up arrow key D. Ctrl + Alt + Del
A
C. Up arrow key
10
Q
If you were working in a shell command prompt and needed to see all of the information regarding your PC, what parameter could you use with the uname command to accomplish this task? A. uname -a B. uname -l C. uname -h D. uname -r
A
A. uname -a
11
Q
If you were working in a shell command prompt and wanted to redirect your output stream to a file instead of just having it show up in your shell command prompt on the screen, what keyboard character is the most command to accomplish this A. $ B. > C. < D. @
A
B. >
12
Q
If you were working in a shell command prompt and wanted to save a list of all the directories in your Linux system to a text file called output.txt, which of the following commands is the best one to accomplish this? A. ls < output.txt B. ls output.txt C. cat output.txt D. ls > output.txt
A
D. ls > output.txt
13
Q
Sending the output of one command to the input of another command is known as \_\_\_\_ in Linux. A. piping B. picking C. pipelining D. popping
A
A. piping
14
Q
If you were working in a shell command prompt and wanted to see a list of all the currently running processes on your Linux PC, what command could you use to accomplish this? A. sp B. whereami C. ps D. proc
A
C. ps
15
Q
Which Linux piping command will search a file and will return any matching terms? A. group B. grep C. awk D. echo
A
B. grep