brayhan gutierrez cespedes
Quiz por , criado more than 1 year ago

fdsfdfsfsdfdsfsdfsd

16
0
0
brayhan gutierrez cespedes
Criado por brayhan gutierrez cespedes mais de 6 anos atrás
Fechar

8

Questão 1 de 24

1

Error messages generated by commands are sent where by default?

Selecione uma das seguintes:

  • Log files

  • STDOUT

  • STDERR

  • STDIN

Explicação

Questão 2 de 24

1

A successful command will print output to STDOUT.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 3 de 24

1

Which of the following commands will direct error messages to the file, error.log?

Selecione uma das seguintes:

  • ls /root >> error.log

  • ls /root 2> error.log

  • ls /root $> error.log

  • ls /root > error.log

Explicação

Questão 4 de 24

1

A pipe allows you to…

Selecione uma das seguintes:

  • …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.

Explicação

Questão 5 de 24

1

Channel 2 is:

Selecione uma das seguintes:

  • STDIN

  • STDALL

  • STDOUT

  • STDERR

Explicação

Questão 6 de 24

1

Which of the following commands will append its output to output.file?

Selecione uma das seguintes:

  • echo Testing > output.file

  • echo Testing >> output.file

  • output.file < echo Testing

  • echo Testing -> output.file

Explicação

Questão 7 de 24

1

Which command(s) can be used to sort the lines of list.file alphabetically and display it on the screen?

Selecione uma ou mais das seguintes:

  • sort < list.file

  • cat list.file | sort

  • cat list.file >> sort

  • echo list.file > sort

Explicação

Questão 8 de 24

1

Which option of the head command will display only the first five lines of a file?

Selecione uma das seguintes:

  • -l 5

  • No option needed; head displays only five lines by default.

  • -n

  • -n 5

Explicação

Questão 9 de 24

1

The grep command…

Selecione uma das seguintes:

  • …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.

Explicação

Questão 10 de 24

1

The grep command can be used with glob characters.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 11 de 24

1

Which of the following commands will display only lines that begin with start?

Selecione uma das seguintes:

  • grep *start file.txt

  • grep $start file.txt

  • grep start file.txt

  • grep ^start file.txt

Explicação

Questão 12 de 24

1

Which of the following commands will display only lines that begin with test?

Selecione uma das seguintes:

  • grep ^test file.txt

  • grep $test* file.txt

  • grep *test file.txt

  • grep &test file.txt

Explicação

Questão 13 de 24

1

Which of the following commands will display lines that contain either start or end?

Selecione uma das seguintes:

  • egrep start end file.txt

  • egrep ‘start|end’ file.txt

  • egrep start&end file.txt

  • egrep (start|end) file.txt

Explicação

Questão 14 de 24

1

Which of the following commands can be used to scroll through a text file?

Selecione uma ou mais das seguintes:

  • some

  • less

  • cat

  • more

Explicação

Questão 15 de 24

1

The find command can search for files based on the size of the file.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 16 de 24

1

Which of the following commands scans the file to determine file locations?

Selecione uma das seguintes:

  • search

  • locate

  • where

  • find

Explicação

Questão 17 de 24

1

Which option for the cut command is used to specify a delimiter?

Selecione uma das seguintes:

  • -f

  • -d

  • =

  • -D

Explicação

Questão 18 de 24

1

Which option for the cut command is used to specify the field?

Selecione uma das seguintes:

  • -D

  • -f

  • -d

  • #

Explicação

Questão 19 de 24

1

Which option for the wc command will print the number of lines in a file?

Selecione uma das seguintes:

  • -l

  • -w

  • -C

  • -L

Explicação

Questão 20 de 24

1

Which option for the wc command will print the total number of words in a file?

Selecione uma das seguintes:

  • -l

  • -L

  • -C

  • -w

Explicação

Questão 21 de 24

1

Which command can be used to print line numbers?

Selecione uma das seguintes:

  • num

  • sort

  • ln

  • nl

Explicação

Questão 22 de 24

1

The command echo “text” > file.txt will create file.txt if it does not already exist.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 23 de 24

1

The command echo “text” > file.txt will not overwrite file.txt if it already exists.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 24 de 24

1

The command echo “text” >> file.txt will not overwrite file.txt if it already exists.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação