8

Descrição

fdsfdfsfsdfdsfsdfsd
brayhan gutierrez cespedes
Quiz por brayhan gutierrez cespedes, atualizado more than 1 year ago
brayhan gutierrez cespedes
Criado por brayhan gutierrez cespedes mais de 6 anos atrás
16
0

Resumo de Recurso

Questão 1

Questão
Error messages generated by commands are sent where by default?
Responda
  • Log files
  • STDOUT
  • STDERR
  • STDIN

Questão 2

Questão
A successful command will print output to STDOUT.
Responda
  • True
  • False

Questão 3

Questão
Which of the following commands will direct error messages to the file, error.log?
Responda
  • ls /root >> error.log
  • ls /root 2> error.log
  • ls /root $> error.log
  • ls /root > error.log

Questão 4

Questão
A pipe allows you to…
Responda
  • …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.

Questão 5

Questão
Channel 2 is:
Responda
  • STDIN
  • STDALL
  • STDOUT
  • STDERR

Questão 6

Questão
Which of the following commands will append its output to output.file?
Responda
  • echo Testing > output.file
  • echo Testing >> output.file
  • output.file < echo Testing
  • echo Testing -> output.file

Questão 7

Questão
Which command(s) can be used to sort the lines of list.file alphabetically and display it on the screen?
Responda
  • sort < list.file
  • cat list.file | sort
  • cat list.file >> sort
  • echo list.file > sort

Questão 8

Questão
Which option of the head command will display only the first five lines of a file?
Responda
  • -l 5
  • No option needed; head displays only five lines by default.
  • -n
  • -n 5

Questão 9

Questão
The grep command…
Responda
  • …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.

Questão 10

Questão
The grep command can be used with glob characters.
Responda
  • True
  • False

Questão 11

Questão
Which of the following commands will display only lines that begin with start?
Responda
  • grep *start file.txt
  • grep $start file.txt
  • grep start file.txt
  • grep ^start file.txt

Questão 12

Questão
Which of the following commands will display only lines that begin with test?
Responda
  • grep ^test file.txt
  • grep $test* file.txt
  • grep *test file.txt
  • grep &test file.txt

Questão 13

Questão
Which of the following commands will display lines that contain either start or end?
Responda
  • egrep start end file.txt
  • egrep ‘start|end’ file.txt
  • egrep start&end file.txt
  • egrep (start|end) file.txt

Questão 14

Questão
Which of the following commands can be used to scroll through a text file?
Responda
  • some
  • less
  • cat
  • more

Questão 15

Questão
The find command can search for files based on the size of the file.
Responda
  • True
  • False

Questão 16

Questão
Which of the following commands scans the file to determine file locations?
Responda
  • search
  • locate
  • where
  • find

Questão 17

Questão
Which option for the cut command is used to specify a delimiter?
Responda
  • -f
  • -d
  • =
  • -D

Questão 18

Questão
Which option for the cut command is used to specify the field?
Responda
  • -D
  • -f
  • -d
  • #

Questão 19

Questão
Which option for the wc command will print the number of lines in a file?
Responda
  • -l
  • -w
  • -C
  • -L

Questão 20

Questão
Which option for the wc command will print the total number of words in a file?
Responda
  • -l
  • -L
  • -C
  • -w

Questão 21

Questão
Which command can be used to print line numbers?
Responda
  • num
  • sort
  • ln
  • nl

Questão 22

Questão
The command echo “text” > file.txt will create file.txt if it does not already exist.
Responda
  • True
  • False

Questão 23

Questão
The command echo “text” > file.txt will not overwrite file.txt if it already exists.
Responda
  • True
  • False

Questão 24

Questão
The command echo “text” >> file.txt will not overwrite file.txt if it already exists.
Responda
  • True
  • False

Semelhante

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