Frage 1
Frage
Error messages generated by commands are sent where by default?
Antworten
-
Log files
-
STDOUT
-
STDERR
-
STDIN
Frage 2
Frage
A successful command will print output to STDOUT.
Frage 3
Frage
Which of the following commands will direct error messages to the file, error.log?
Antworten
-
ls /root >> error.log
-
ls /root 2> error.log
-
ls /root $> error.log
-
ls /root > error.log
Frage 4
Frage
A pipe allows you to…
Antworten
-
…send the same input to multiple commands.
-
…type multiple commands at one prompt.
-
…send the output of one command to another.
-
…send the output of a command to a file.
Frage 5
Antworten
-
STDIN
-
STDALL
-
STDOUT
-
STDERR
Frage 6
Frage
Which of the following commands will append its output to output.file?
Antworten
-
echo Testing > output.file
-
echo Testing >> output.file
-
output.file < echo Testing
-
echo Testing -> output.file
Frage 7
Frage
Which command(s) can be used to sort the lines of list.file alphabetically and display it on the screen?
Antworten
-
sort < list.file
-
cat list.file | sort
-
cat list.file >> sort
-
echo list.file > sort
Frage 8
Frage
Which option of the head command will display only the first five lines of a file?
Frage 9
Antworten
-
…will display all the lines that begin with the specified Regular Expression.
-
…is not case sensitive.
-
…will display all the lines in a file containing the specified Regular Expression.
-
…will display the line numbers in a file that contain a specified Regular Expression.
Frage 10
Frage
The grep command can be used with glob characters.
Frage 11
Frage
Which of the following commands will display only lines that begin with start?
Antworten
-
grep *start file.txt
-
grep $start file.txt
-
grep start file.txt
-
grep ^start file.txt
Frage 12
Frage
Which of the following commands will display only lines that begin with test?
Antworten
-
grep ^test file.txt
-
grep $test* file.txt
-
grep *test file.txt
-
grep &test file.txt
Frage 13
Frage
Which of the following commands will display lines that contain either start or end?
Frage 14
Frage
Which of the following commands can be used to scroll through a text file?
Frage 15
Frage
The find command can search for files based on the size of the file.
Frage 16
Frage
Which of the following commands scans the file to determine file locations?
Frage 17
Frage
Which option for the cut command is used to specify a delimiter?
Frage 18
Frage
Which option for the cut command is used to specify the field?
Frage 19
Frage
Which option for the wc command will print the number of lines in a file?
Frage 20
Frage
Which option for the wc command will print the total number of words in a file?
Frage 21
Frage
Which command can be used to print line numbers?
Frage 22
Frage
The command echo “text” > file.txt will create file.txt if it does not already exist.
Frage 23
Frage
The command echo “text” > file.txt will not overwrite file.txt if it already exists.
Frage 24
Frage
The command echo “text” >> file.txt will not overwrite file.txt if it already exists.