Services
Discover
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Guide to Linux Certification
Exam 7: Working With the Bash Shell
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
Essay
Describe what file descriptors are, and then list three that can be used within the BASH shell, and discuss how they can be used.
Question 2
Short Answer
The ____________________ environment variable contains a list of directories to search for executable programs.
Question 3
Multiple Choice
A list of all exported environment and user-defined variables in a shell can be viewed with what command below?
Question 4
Multiple Choice
The ability to extract, manipulate, and format text using pattern action statements belongs to which command below?
Question 5
Multiple Choice
What two BASH environment variables represent the current working directory, and the absolute pathname of the current shell, respectively?
Question 6
Multiple Choice
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?
Question 7
Multiple Choice
In an if construct, what statements are optional?
Question 8
Multiple Choice
What permissions are required to execute a shell script in a manner similar to any other executable program on the system?
Question 9
Short Answer
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 ||.
Question 10
Multiple Choice
What number represents the stdin file descriptor?
Question 11
Multiple Choice
Select the escape sequence that starts a new line when used with echo:
Question 12
Multiple Choice
The default BASH shell prompt is set by an environment variable. What command can be used to view this variable?
Question 13
Multiple Choice
What operator below is known as the NOT operator?
Question 14
True/False
Any command that can be executed on the command line can also be placed inside any environment file.
Question 15
Multiple Choice
What character is used to delimit most Linux configuration files?
Question 16
True/False
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.
Question 17
Essay
Explain the while construct, and demonstrate how it can be used.
Question 18
Multiple Choice
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?