Chapter 5 Exam Flashcards

1
Q

Select all the applications that provide access to the Command Line Interface (CLI)? (choose two)

opera
Virtual Terminal
Terminal window
firefox

A

Virtual Terminal*

Terminal window*

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

Which environment variable contains a list of directories that is searched for commands to execute?

PATH
PS2
PS1
EXEC

A

PATH*

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

Select the command that can report the location of a command:

what
where
which

A

which*

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

A pair of single quotes ( ‘ ) will prevent the shell from interpreting any metacharacter.
True or False?

True
False

A

True*

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

A pair of double quotes ( ” ) will prevent the shell from interpreting any metacharacter.True or False?
True
False

A

False*

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

Using a pair of back quotes ( ` ) will cause a shell to execute the back-quoted text as a command and substitute the output back into the original command.True or False?

True
False

A

True

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

Which of the following are glob characters?(choose three)

The asterisk “*”
The question mark “?”
The dash character “-“
The square brackets “[” and “]”

A

The asterisk “*”
The question mark “?”
The square brackets “[” and “]”

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

The semicolon “;” can be used to separate multiple commands to be executed in order.
True or False?

True
False

A

True

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

The double ampersand characters ( && ) are used to separate commands to be executed conditionally, where if the command to the left of the ampersands fails, then the command to the right of the ampersands will be executed.
True or False?

True
False

A

False

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

To be able to output messages to the screen, use the _______ command:

display
type
print
echo

A

echo

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

The _______ command will print a list of the commands that you’ve previously executed.

eval
history
list
exec

A

history

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

To execute the same command as previously executed five commands ago, you would type:

&5
!-5
@-5
!5

A

!-5

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

The shell program interprets the commands you type into the terminal, into instructions that the Linux operating system can execute.
True or False?

True
False

A

True*

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

The acronym CLI stands for:

Command Line Interpreter
Computer Link Interpreter
Computer Line Interface
Command Line Interface

A

Command Line Interface

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

Traditional UNIX command options used a single dash, like -a; _______ command options use two dashes like –all.

LINUX
Kernel
GNU
shell

A

GNU *

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

The acronym GNU stands for:

Gnu’s Not Unix*
Good News Unix
Gnu’s Nearly Unix
Go Next Unit

A

Gnu’s Not Unix

17
Q


/

What one character treats the character that follows it as if it was surrounded by single quotes?

%
\

A

\

18
Q

The main purpose of using glob characters is to be able to provide a command a list of filenames.
True or False?

True
False

A

True

19
Q

HOME is an example of _________.

An environment variable
A path variable
A local variable
An internal command
An alias
A

An environment variable

20
Q

The most common shell used for Linux distributions is the ________ shell.

Fish
Bash
Tsch
Zsh

A

Bash

21
Q

alias for ls -CF

A

l

22
Q

alias for ls -A

A

la

23
Q

alias for ls -alF

A

ll

24
Q

alias for ls –color=auto

A

ls