Working with Text
Linux Essentials +
Chapter 10: Working with Text:
Writing here
Questions and Answers
Q1
A successful command may or may not print output to STDOUT. True or False?Trues
Q2
Which of the following commands will direct error messages to the file, error.log?ls /root 2> error.log
Q3
A pipe allows you to......send the output of one command directly as input to another command
Q4
Which option of the head command will display only the first five lines of a file?-n 5
Q5
The grep command......will display all the lines in a file containing the specified Regular Expression.
Q6
The grep command can be used with glob characters. True or False?True
Q7
Which of the following commands will display lines that contain either start or end?egrep 'start|end' file.txt
Q8
Which of the following commands can be used to scroll through a text file? (choose two)1. less 2. more
Q9
Which option for the cut command is used to specify a delimiter?-d
Q10
Which option for the cut command is used to specify the field?-f