Quiz
8
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (24)
1Error messages generated by commands are sent where by default?
- ALog files
- BSTDOUT
- CSTDERR
- DSTDIN
2A successful command will print output to STDOUT.
- ATrue
- BFalse
3Which of the following commands will direct error messages to the file, error.log?
- Als /root >> error.log
- Bls /root 2> error.log
- Cls /root $> error.log
- Dls /root > error.log
4A pipe allows you to…
- A…send the same input to multiple commands.
- B…type multiple commands at one prompt.
- C…send the output of one command to another.
- D…send the output of a command to a file.
5Channel 2 is:
- ASTDIN
- BSTDALL
- CSTDOUT
- DSTDERR
6Which of the following commands will append its output to output.file?
- Aecho Testing > output.file
- Becho Testing >> output.file
- Coutput.file < echo Testing
- Decho Testing -> output.file
7Which command(s) can be used to sort the lines of list.file alphabetically and display it on the screen?
- Asort < list.file
- Bcat list.file | sort
- Ccat list.file >> sort
- Decho list.file > sort
8Which option of the head command will display only the first five lines of a file?
- A-l 5
- BNo option needed; head displays only five lines by default.
- C-n
- D-n 5
9The grep command…
- A…will display all the lines that begin with the specified Regular Expression.
- B…is not case sensitive.
- C…will display all the lines in a file containing the specified Regular Expression.
- D…will display the line numbers in a file that contain a specified Regular Expression.
10The grep command can be used with glob characters.
- ATrue
- BFalse
11Which of the following commands will display only lines that begin with start?
- Agrep *start file.txt
- Bgrep $start file.txt
- Cgrep start file.txt
- Dgrep ^start file.txt
12Which of the following commands will display only lines that begin with test?
- Agrep ^test file.txt
- Bgrep $test* file.txt
- Cgrep *test file.txt
- Dgrep &test file.txt
13Which of the following commands will display lines that contain either start or end?
- Aegrep start end file.txt
- Begrep ‘start|end’ file.txt
- Cegrep start&end file.txt
- Degrep (start|end) file.txt
14Which of the following commands can be used to scroll through a text file?
- Asome
- Bless
- Ccat
- Dmore
15The find command can search for files based on the size of the file.
- ATrue
- BFalse
16Which of the following commands scans the file to determine file locations?
- Asearch
- Blocate
- Cwhere
- Dfind
17Which option for the cut command is used to specify a delimiter?
- A-f
- B-d
- C=
- D-D
18Which option for the cut command is used to specify the field?
- A-D
- B-f
- C-d
- D#
19Which option for the wc command will print the number of lines in a file?
- A-l
- B-w
- C-C
- D-L
20Which option for the wc command will print the total number of words in a file?
- A-l
- B-L
- C-C
- D-w
21Which command can be used to print line numbers?
- Anum
- Bsort
- Cln
- Dnl
22The command echo “text” > file.txt will create file.txt if it does not already exist.
- ATrue
- BFalse
23The command echo “text” > file.txt will not overwrite file.txt if it already exists.
- ATrue
- BFalse
24The command echo “text” >> file.txt will not overwrite file.txt if it already exists.
- ATrue
- BFalse
Information
- Description
- fdsfdfsfsdfdsfsdfsd
- Language
- Español
- Views
- 96
- Tags
- Rating
- No ratings yet Rate this quiz