Exam 7: Working With the Bash Shell

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

Users can create their own custom variables, called shell variables. _________________________

Free
(True/False)
4.8/5
(32)
Correct Answer:
Verified

False

In a decision construct, you can have an unlimited number of if then statements. _________________________

Free
(True/False)
4.9/5
(46)
Correct Answer:
Verified

False

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

Free
(Essay)
4.8/5
(36)
Correct Answer:
Verified

A BASH shell has several variables in memory at any one time. Recall that a variable is simply a reserved portion of memory containing information that might be accessed. Most variables in the shell are referred to as environment variables because they are typically set by the system and contain information that the system and programs access regularly. Users can also create their own custom variables. These variables are called user-defined variables. In addition to these two types of variables, special variables are available that are useful when executing commands and creating new files and directories.

The ____ escape sequence represents a form feed.

(Multiple Choice)
5.0/5
(38)

The ____ command could be used to view the contents of the environment variable that represents the BASH shell prompt.

(Multiple Choice)
4.8/5
(38)

The ____ command counts the number of lines, words, and characters in a file.

(Multiple Choice)
4.8/5
(32)

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

(True/False)
4.8/5
(27)

The ____________________ environment variable contains a list of directories to search for executable programs.

(Short Answer)
4.8/5
(28)

A case construct must be ended by ____________________.

(Short Answer)
5.0/5
(28)

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

(Multiple Choice)
4.8/5
(42)

Match each term with the correct statement below. -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.

(Multiple Choice)
5.0/5
(36)

The test statement ____ would be used to determine if A is numerically greater than B.

(Multiple Choice)
4.8/5
(31)

Given the syntax command && command, the command on the left of the && construct is executed only if the command on the right of the && construct completed successfully.

(True/False)
4.8/5
(30)

The ____ command can be used to extract, manipulate, and format text using pattern-action statements.

(Multiple Choice)
4.9/5
(38)

Match each term with the correct statement below. -The information that is processed by the command during execution.

(Multiple Choice)
4.8/5
(36)

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.8/5
(33)

What is a decision construct? What is the most common type of decision construct, and what is the syntax for using it?

(Essay)
4.7/5
(38)

What are shell scripts? Why and how are they executed?

(Essay)
4.8/5
(29)

Describe the while construct. How and why is it used?

(Essay)
4.8/5
(32)

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

(True/False)
4.9/5
(34)
Showing 1 - 20 of 45
close modal

Filters

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