Exam 7: Working With the Bash Shell
Exam 1: Introduction to Linux50 Questions
Exam 2: Linux Installation and Usage50 Questions
Exam 3: Exploring Linux Filesystems50 Questions
Exam 4: Linux Filesystem Management50 Questions
Exam 5: Linux Filesystem Administration50 Questions
Exam 6: Linux Server Deployment50 Questions
Exam 7: Working With the Bash Shell50 Questions
Exam 8: System Initialization and X Windows50 Questions
Exam 9: Managing Linux Processes50 Questions
Exam 10: Common Administrative Tasks50 Questions
Exam 11: Compression, System Backup, and Software Installation50 Questions
Exam 12: Network Configuration50 Questions
Exam 13: Configuring Network Services50 Questions
Exam 14: Troubleshooting, Performance, and Security50 Questions
Select questions type
Describe what file descriptors are, and then list three that can be used within the BASH shell, and discuss how they can be used.
Free
(Essay)
4.8/5
(42)
Correct Answer:
Command input and output are represented by labels known as file descriptors. For each command that can be manipulated by the BASH shell, there are three file descriptors:
Standard input (stdin)
Standard output (stdout)
Standard error (stderr)
Standard input (stdin) refers to the information processed by the command during execution; this often takes the form of user input typed on the keyboard. Standard output (stdout) refers to the normal output of a command, whereas standard error (stderr) refers to any error messages generated by the command. Both stdout and stderr are displayed on the terminal screen by default.
The ____________________ environment variable contains a list of directories to search for executable programs.
Free
(Short Answer)
4.8/5
(44)
Correct Answer:
PATH
A list of all exported environment and user-defined variables in a shell can be viewed with what command below?
Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
A
The ability to extract, manipulate, and format text using pattern action statements belongs to which command below?
(Multiple Choice)
4.8/5
(32)
What two BASH environment variables represent the current working directory, and the absolute pathname of the current shell, respectively?
(Multiple Choice)
4.8/5
(45)
What 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.8/5
(36)
What permissions are required to execute a shell script in a manner similar to any other executable program on the system?
(Multiple Choice)
4.9/5
(35)
Match each correct item with the statement below.
a.counter variable
b.decision construct
c.environment variables
d.file descriptors
e.hashpling
f.loop construct
g.redirection
h.Standard Error (stderr)
i.Standard Input (stdin)
j.Standard Output (stdout)
-A special construct used in a shell script to alter the flow of the program based on the outcome of a command or contents of a variable. Common decision constructs include if, case, &&, and ||.
(Short Answer)
4.9/5
(30)
Select the escape sequence that starts a new line when used with echo:
(Multiple Choice)
4.8/5
(34)
The default BASH shell prompt is set by an environment variable. What command can be used to view this variable?
(Multiple Choice)
4.7/5
(35)
Any command that can be executed on the command line can also be placed inside any environment file.
(True/False)
4.8/5
(29)
What character is used to delimit most Linux configuration files?
(Multiple Choice)
4.8/5
(37)
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
(38)
The standard output and standard error from a terminal screen within the BASH shell can be redirected to a file on the filesystem using what shell metacharacter, followed by the absolute or relative pathname of the file?
(Multiple Choice)
4.7/5
(38)
Select the test statement that can be used to determine if A is numerically greater than B:
(Multiple Choice)
4.9/5
(26)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)