Hoofdstuk 8 Flashcards
A successful command will print output to STDOUT.
True
A pipe allows you to… 8.3
…send the output of one command to another
Channel 2 is: - 8.4.5
STDRR
Which command(s) can be used to sort the lines of list.file alphabetically and display it on the screen? -8.8
sort cat list.file | sort
The grep command… - 8.11
…can be used to filter lines in a file or the output of another command based on matching a pattern.
Which of the following commands will display only lines that begin with start? - 8.12.4
grep ^start file.txt
Which of the following commands scans the file to determine file locations? 8.5
find
Which option for the cut command is used to specify the field? - 8.10
-f
Which command can be used to print line numbers?
n1
The command echo “text”»_space; file.txt will not overwrite file.txt if it already exists. 8.4.4
True
The grep command… - 8.11
…will display all the lines in a file containing the specified Regular Expression.
Which of the following commands will display only lines that begin with test? - 8.13
grep ^test file.txt
Which of the following commands will display lines that contain either start or end? - 8.13
egrep ‘start|end’ file.txt
Which option for the wc command will print the number of lines in a file? 8.9
-w
The command echo “text” > file.txt will create file.txt if it does not already exist. 8.4.4
True