chapter 10
Which option for the cut command is used to specify the field?
-f
Which option for the wc command will print the number of lines in a file?
-l
Which option of the head command will display only the first five lines of a file?
-n 5
A pipe allows you to...
...send the output of one command to another.
Channel 2 is:
STDERR
The grep command can be used with glob characters.
True
The command echo "text" > file.txt will not overwrite file.txt if it already exists.
false
Which of the following commands will display only lines that begin with start?
grep ^start file.txt
Which command can be used to print line numbers?
nl
Which command(s) can be used to sort the lines of list.file alphabetically and display it on the screen? (choose two)
✔ sort < list.file ✔ cat list.file | sort