Top-Rated Free Essay
Preview

unix ch. 5 & 6 test study guide

Satisfactory Essays
604 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
unix ch. 5 & 6 test study guide
RELATIONAL operators compare the relationship between two values or arguments

The -v option of the grep command displays only lines that do not contain the search pattern

You should omit spaces when you assign a variable without using single or double quotation marks around its value.
A) True

The -B option of the diff command does not compare for blank lines.

The tput command enables you to initialize the terminal display or terminal window, to place text and prompts in desired locations, and to respond to what the user selects from the menu.

You use the grep command to search for a specified pattern in a file, such as a particular word or phrase.

The -u option of the uniq command instructs it to generate as output only the lines of the source file that are not duplicated successively

With no options, set displays the current listing of Bash environment and shell script variables.

A program’s high-level language statements are stored in a file called the source file.

To append new lines in sed, you must use the a\ command

The -b option of the diff command ignores blanks that repeat.

Configuration variables are used to store information about the setup of the operating system, and after they are set up, you typically do not change them.

Shell scripts run more quickly than compiled programs.
TRUE

The printenv command prints a listing of environment and configuration variables.

The trap command is useful when you want your shell program to automatically remove any temporary files that are created when the shell script runs.

To reference a variable, you use a dollar sign ($) in front of it or enclose it in curly brackets.

Shell scripts can automatically access variables created and assigned on the command line
FALSE

You should omit spaces when you assign a variable without using single or double quotation marks around its value.
TRUE

By default, each page in the output of pr has a FIVE -line header, which, by default, contains the current file’s name, its last modification date, the current page, and a trailer consisting of blank lines.

When you create a shell script to run in Bash, you can immediately run the script by typing sh and then the name of the script.

The pipe operator | redirects the output of one command to the input of another command.

A popular use of pr is to convert lowercase characters to uppercase characters.
FALSE

Bash is a freeware derivative of the Bourne and KORN shells.

You can use the < operator to redirect a command’s output from the screen to a file.
FALSE

Wildcard characters are also known as glob characters.

The -c option of the diff command shows lines surrounding the line that differs.

The BASH shell, when compared to the other shells, has a more powerful programming interface.

The comm command locates identical lines within two identically sorted files.

You use the chexec command to indicate that a (shell script) file can be executed.
FALSE

The printf function within the awk command is used to format output.

The uniq command removes duplicate lines from a file.

SHELL variables are those you create at the command line or in a shell script.

By default, pr formats the specified files into single-column pages of 66 lines.

Logic structures are also called control structures.

A symbolic is a name consisting of letters, numbers, or characters and is used to reference the contents of a variable.

uniq is a selection command.

sed is NOT a selection command.

The -y option of the diff command is used to display the differences side-by-side in columns.

You May Also Find These Documents Helpful