David Harton
Quiz by , created more than 1 year ago

Quiz on Linux Essentials Chapter 4 Exam, created by David Harton on 08/06/2018.

417
0
0
No tags specified
David Harton
Created by David Harton about 6 years ago
Close

Linux Essentials Chapter 4 Exam

Question 1 of 18

1

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

Select one or more of the following:

  • opera

  • Virtual Terminal

  • Terminal window

  • firefox

Explanation

Question 2 of 18

1

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

Select one or more of the following:

  • PATH

  • PS2

  • PS1

  • EXEC

Explanation

Question 3 of 18

1

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

Select one or more of the following:

  • what

  • where

  • which

Explanation

Question 4 of 18

1

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

Select one or more of the following:

  • True

  • False

Explanation

Question 5 of 18

1

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

Select one or more of the following:

  • True

  • False

Explanation

Question 6 of 18

1

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?

Select one or more of the following:

  • True

  • False

Explanation

Question 7 of 18

1

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

Select one or more of the following:

  • The asterisk “*”

  • The question mark “?”

  • The dash character “-“

  • The square brackets “[” and “]”

Explanation

Question 8 of 18

1

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

Select one or more of the following:

  • True

  • False

Explanation

Question 9 of 18

1

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?

Select one or more of the following:

  • True

  • False

Explanation

Question 10 of 18

1

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

Select one or more of the following:

  • display

  • type

  • print

  • echo

Explanation

Question 11 of 18

1

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

Select one or more of the following:

  • eval

  • history

  • list

  • exec

Explanation

Question 12 of 18

1

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

Select one or more of the following:

  • &5

  • !-5

  • @-5

  • !5

Explanation

Question 13 of 18

1

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

Select one or more of the following:

  • True

  • False

Explanation

Question 14 of 18

1

The acronym CLI stands for:

Select one or more of the following:

  • Command Line Interpreter

  • Computer Link Interpreter

  • Computer Line Interface

  • Command Line Interface

Explanation

Question 15 of 18

1

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

Select one or more of the following:

  • LINUX

  • Kernel

  • GNU

  • shell

Explanation

Question 16 of 18

1

The acronym GNU stands for:

Select one or more of the following:

  • Gnu’s Not Unix

  • Good News Unix

  • Gnu’s Nearly Unix

  • Go Next Unit

Explanation

Question 17 of 18

1

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

Select one or more of the following:

  • #

  • /

  • %

  • \

Explanation

Question 18 of 18

1

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

Select one or more of the following:

  • True

  • False

Explanation