Sie sind auf Seite 1von 1

WRONG - See section 8.4.

5
Which of the following commands will direct error messages to the file error.log
?
ls /root > error.log
WRONG - See section 8.8
Which command(s) can be used to sort the lines of list.file alphabetically and d
isplay it on the screen?
echo list.file > sort
cat list.file | sort
CORRECT - See section 8.7
Which option of the head command will display only the first five lines of a fil
e?
-n 5
WRONG - See section 8.11
The grep command...
...will display all the lines that begin with the specified Regular Expression.
CORRECT - See section 8.12.4
Which of the following commands will display only lines that begin with start?
grep ^start file.txt
CORRECT - See section 8.10
Which option for the cut command is used to specify a delimiter?
-d
CORRECT - See section 8.10
Which option for the cut command is used to specify the field?
-f
CORRECT - See section 8.9
Which option for the wc command will print the number of lines in a file?
-l
CORRECT - See section 8.3
Which command can be used to print line numbers?
nl
CORRECT - See section 8.4.4
The command echo "text" > file.txt will not overwrite file.txt if it already exi
sts.
False

Das könnte Ihnen auch gefallen