Linux Essentials 2.0 Chapter 5 Exam Answers

Last Updated on October 17, 2019 by Admin

NDG Linux Essentials 2.0 Chapter 5 Exam Answers

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

    • PATH
    • PS1
    • PS2
    • EXEC
  2. Select the command that can report the location of a command:

    • what
    • which
    • where
  3. A pair of single quotes ( ‘ ) will prevent the shell from interpreting any metacharacter.

    True or False?

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

    True or False?

    • True
    • False
  5. 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
  6. The semicolon (;) can be used to separate multiple commands to be executed in order.

    True or False?

    • True
    • False
  7. 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
  8. To be able to output messages to the screen, use the _______ command:

    • echo
    • print
    • display
    • type
  9. The _______ command will print a list of the commands that you’ve previously executed.

    • list
    • eval
    • history
    • exec
  10. To execute the same command as previously executed five commands ago, you would type:

    • @-5
    • !5
    • !-5
    • &5
  11. 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
  12. The acronym CLI stands for:

    • Computer Line Interface
    • Command Line Interpreter
    • Command Line Interface
    • Computer Link Interpreter
  13. What one character treats the character that follows it as if it was surrounded by single quotes?

    • /
    • #
    • %
    • \
  14. The echo command:

    • Copies variables from one to another
    • Tests a variable for duplication
    • Is used for variable assignment
    • Is used to output text to the console
    • Duplicates the input stream to the output stream
  15. The most common shell used for Linux distributions is the ________ shell.

    • Fish
    • Bash
    • Tsch
    • Zsh
  16. HOME is an example of _________.

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