Error messages generated by commands are sent where by default? |
STDERR |
A successful command will print out put to STDOUT |
True |
Which of the following commands will direct error messages to the file, error.log? |
✔ ls /root 2> error.log |
A pipe allows you to |
send the output of one command to another |
Channel 2 is |
STDERR |
Which of the following commands will append its output to output.file? |
echo Testing >> output.file |
Which command(s) can be used to sort the lines of list.file alphabetically and display it on the screen? |
sort < list.file cat list.file | sort |
Which option of the head command will display only the first five lines of a file |
-n 5 |
The grep command |
will display all the lines in a file containing the specified Regular Expression |
The grep command can be used with glob characters |
TRue |
which of the following commands will display only lines that begin with start? |
Grep ^start file. txt |
which of the following commands will display only lines that begin with test |
grep ^test file.txt |
which of the following command will display lines that contain either start or end |
egrep ‘start|end’file.txt |
which of the following commands can be used to scroll through a text file |
less more |
the find command can search for files based on the size of the file |
true |
which of the following commands scans the file to determine file location |
find |
which option for the cut command is used to specify a delimiter |
-d |
which option for the cut command is used to specify the field |
-f |
which option for wc command will print the number of lines in a file |
-l |
which option for the wc command will print the total number of words in a file |
-w |
which command can be used to print line numbers |
nl |
the command echo "text" > file.txt will create file.txt if it does not already exist. |
true |
the command echo "text" > file.txt will not overwrite file.txt if it already exists. |
false |
the command echo "text" >> file.txt will not overwrite file.text if it already exists |
true |
Linux Chapter 8
Share This
Unfinished tasks keep piling up?
Let us complete them for you. Quickly and professionally.
Check Price