8

Beschreibung

fdsfdfsfsdfdsfsdfsd
brayhan gutierrez cespedes
Quiz von brayhan gutierrez cespedes, aktualisiert more than 1 year ago
brayhan gutierrez cespedes
Erstellt von brayhan gutierrez cespedes vor etwa 7 Jahre
30
0

Zusammenfassung der Ressource

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.
Antworten
  • True
  • False

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

Frage
Channel 2 is:
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?
Antworten
  • -l 5
  • No option needed; head displays only five lines by default.
  • -n
  • -n 5

Frage 9

Frage
The grep command…
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.
Antworten
  • True
  • False

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?
Antworten
  • egrep start end file.txt
  • egrep ‘start|end’ file.txt
  • egrep start&end file.txt
  • egrep (start|end) file.txt

Frage 14

Frage
Which of the following commands can be used to scroll through a text file?
Antworten
  • some
  • less
  • cat
  • more

Frage 15

Frage
The find command can search for files based on the size of the file.
Antworten
  • True
  • False

Frage 16

Frage
Which of the following commands scans the file to determine file locations?
Antworten
  • search
  • locate
  • where
  • find

Frage 17

Frage
Which option for the cut command is used to specify a delimiter?
Antworten
  • -f
  • -d
  • =
  • -D

Frage 18

Frage
Which option for the cut command is used to specify the field?
Antworten
  • -D
  • -f
  • -d
  • #

Frage 19

Frage
Which option for the wc command will print the number of lines in a file?
Antworten
  • -l
  • -w
  • -C
  • -L

Frage 20

Frage
Which option for the wc command will print the total number of words in a file?
Antworten
  • -l
  • -L
  • -C
  • -w

Frage 21

Frage
Which command can be used to print line numbers?
Antworten
  • num
  • sort
  • ln
  • nl

Frage 22

Frage
The command echo “text” > file.txt will create file.txt if it does not already exist.
Antworten
  • True
  • False

Frage 23

Frage
The command echo “text” > file.txt will not overwrite file.txt if it already exists.
Antworten
  • True
  • False

Frage 24

Frage
The command echo “text” >> file.txt will not overwrite file.txt if it already exists.
Antworten
  • True
  • False
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

NOTA DE CRÉDITO
william sevilla
Métodos de Separación de Mezclas
José Ángel Cuellar Sánchez
Video Digital
Daniel Benitez
Reingeniería de Procesos
Edgar Lopez
ANDRES
Andrews Bedon
Hobbes vs Locke
piero.cafarelli
Rasgos de Maria por el papa Francisco
Cinthia Estefany
Generación de computadoras
diego dlm