Linux Chapter 5 Review Questions 2023.
Linux Chapter 5 Review Questions 2023.You use the ____ command to search for a specified pattern in a file, such as a particular word or phrase. - ANSWER grep The ____ option of the diff command shows lines surrounding the line that differs. - ANSWER -c When you create a shell script to run in Bash, you can immediately run the script by typing ____ and then the name of the script. - ANSWER sh The ____ function within the awk command is used to format output. - ANSWER printf The ____ option of the grep command displays only lines that do not contain the search pattern. - ANSWER -v The ____ option of the diff command does not compare for blank lines. - ANSWER -B When using the printf function, ____ indicates that the output is to appear in decimal digits. - ANSWER %d The ____ redirects the output of one command to the input of another command. - ANSWER pipe operator (|) ____ is NOT a selection command. - ANSWER sed The ____ option of the diff command ignores blanks that repeat. - ANSWER -b By default, each page in the output of pr has a ____-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. - ANSWER five Bash is a freeware derivative of the Bourne and ____ shells. - ANSWER Korn The ____ command removes duplicate lines from a file. - ANSWER uniq By default, pr formats the specified files into single-column pages of ____ lines. - ANSWER 66 The ____ option of the uniq command instructs it to generate as output only the lines of the source file that are not duplicated successively. - ANSWER -u To append new lines in sed, you must use the ____ command - ANSWER a You use the ____ character in script files to mark comments. - ANSWER pound (#) The ____ command locates identical lines within two identically sorted files. - ANSWER comm One way to run a shell script is to make it executable by using the x permission and then typing ____ prior to the script name when you run the script itself. - ANSWER ./ The ____ option of the diff command is used to display the differences side-by-side in columns. - ANSWER -y compares sorted files and shows differences - ANSWER comm selects lines or rows - ANSWER grep counts characters, words, or lines in a file - ANSWER wc selects columns (fields) - ANSWER cut compares and selects differences in two files - ANSWER diff formats and prints - ANSWER pr
Document information
- Uploaded on
- May 29, 2023
- Number of pages
- 2
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers