Exam 8: Working With the Bash Shell

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A case construct must be ended by ____________________.

(Short Answer)
4.7/5
(33)

Most configuration files on Linux systems are delimited using ____ characters.

(Multiple Choice)
4.8/5
(35)

What are shell variables? What are environment and user-defined variables?

(Essay)
4.8/5
(34)

If you have ____ permission to a shell script, you can execute the shell script like any other executable program on the system.

(Multiple Choice)
4.7/5
(41)
Match each term with the correct statement below.
The normal output of a command.
environment variables
Files that are typically used to create custom programs that perform administrative tasks on Linux systems.
tee
The information that is processed by the command during execution.
stdin
Correct Answer:
Verified
Premises:
Responses:
The normal output of a command.
environment variables
Files that are typically used to create custom programs that perform administrative tasks on Linux systems.
tee
The information that is processed by the command during execution.
stdin
Labels representing command input and output.
decision construct
Any error messages generated by a command.
file descriptors
The first line in a shell script, which specifies the pathname to the shell that interprets the contents of the shell script.
stderr
A filter command that takes information from Standard Input and sends that information to a file, as well as to Standard Output.
shell scripts
Shell variables that are typically set by the system and contain information that the system and programs access regularly.
stdout
Constructs that alter the flow of a program based on whether a command in the program completed successfully or based on a decision that the user makes given a question posed by the program.
hashpling
(Matching)
4.8/5
(40)

You are limited to using one pipe | metacharacter on the command line to pipe information from one command to another command.

(True/False)
4.8/5
(35)

Describe the && and || constructs. How and why are they used?

(Essay)
5.0/5
(31)

You can use the sed command to remove unwanted lines of text.

(True/False)
4.8/5
(33)

The ____ command can be used to replace characters in a file sent via Standard Input.

(Multiple Choice)
4.9/5
(31)

The ____ environment file is always executed immediately after login for all users on the system, and sets most environment variables, such as HOME and PATH.

(Multiple Choice)
4.9/5
(27)

The ____________________ command takes user input from Standard Input and places it in a variable specified by an argument.

(Short Answer)
4.8/5
(34)

You can use the BASH shell to redirect Standard Output and Standard Error from the terminal screen to a file on the filesystem using the ____ shell metacharacter followed by the absolute or relative pathname of the file.

(Multiple Choice)
4.8/5
(38)
Showing 21 - 32 of 32
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)