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
-
13. If the following program (myprog) is run from the command line as myprog monday tuesday wednesday thursday? What would be the output?…
- 3614 Words
- 15 Pages
Better Essays -
Which of the following commands is used to start X Window from the command line?…
- 2385 Words
- 10 Pages
Powerful Essays -
What is the result of giving the ‘which’ utility the name of a command that resides in a directory that is not in your search path?…
- 344 Words
- 2 Pages
Satisfactory Essays -
OK, let's execute our script and see results - whether values will be captured or not:…
- 1858 Words
- 8 Pages
Good Essays -
5. What is the path to the startup folder for each user in Windows Vista?…
- 846 Words
- 4 Pages
Good Essays -
7. In response to southern lack of compromise in the face of Andrew johnson’s mild reconstruction plan, congress did all of the following except…
- 747 Words
- 3 Pages
Good Essays -
4. Permitted to march his men back to Virginia with the full honors of war…
- 648 Words
- 3 Pages
Good Essays -
Federalist then switched to Republican after ratification of Constitution-wanted central gov’t and create no danger of democracy…
- 1946 Words
- 9 Pages
Good Essays -
1. Know exactly what topics will be on the exam and where to find them in your text.…
- 196 Words
- 1 Page
Satisfactory Essays -
Write, “Select international currency type: Canadian dollars, Mexican pesos, English pounds, Japanese yen, French francs.”…
- 1033 Words
- 5 Pages
Powerful Essays -
| The default shell is bash. The shell allows users to type commands and have the output displayed on the screen.…
- 489 Words
- 2 Pages
Good Essays -
5. You have forgotten the purpose of the -n option in the cat command. Which of the following can you enter at the Linux command line to find out what the -n option does when used with cat?…
- 2601 Words
- 11 Pages
Good Essays -
True/False Questions. Read each statement carefully, and neatly write the word TRUE on the line next to the statement if you believe the statement is true, or neatly write the word FALSE on the line next to the statement if you believe the statement is false.…
- 1120 Words
- 5 Pages
Good Essays -
In several non-Western cultures, family members and community authorities may make decisions regarding medical care of an individual. Often, it may be inappropriate to discuss the diagnosis or prognosis with the patient.…
- 1397 Words
- 6 Pages
Satisfactory Essays -
Conficker uses different global and local mutexes to ensure that only the most up-to-date version is run on the system. This fact can be exploited to scan for and to prevent infections.…
- 261 Words
- 2 Pages
Satisfactory Essays