brayhan gutierrez cespedes
Quiz von , erstellt am more than 1 year ago

fdsfdfsfsdfdsfsdfsd

33
0
0
brayhan gutierrez cespedes
Erstellt von brayhan gutierrez cespedes vor mehr als 7 Jahre
Schließen

8

Frage 1 von 24

1

Error messages generated by commands are sent where by default?

Wähle eine der folgenden:

  • Log files

  • STDOUT

  • STDERR

  • STDIN

Erklärung

Frage 2 von 24

1

A successful command will print output to STDOUT.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 3 von 24

1

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

Wähle eine der folgenden:

  • ls /root >> error.log

  • ls /root 2> error.log

  • ls /root $> error.log

  • ls /root > error.log

Erklärung

Frage 4 von 24

1

A pipe allows you to…

Wähle eine der folgenden:

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

Erklärung

Frage 5 von 24

1

Channel 2 is:

Wähle eine der folgenden:

  • STDIN

  • STDALL

  • STDOUT

  • STDERR

Erklärung

Frage 6 von 24

1

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

Wähle eine der folgenden:

  • echo Testing > output.file

  • echo Testing >> output.file

  • output.file < echo Testing

  • echo Testing -> output.file

Erklärung

Frage 7 von 24

1

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

Wähle eine oder mehr der folgenden:

  • sort < list.file

  • cat list.file | sort

  • cat list.file >> sort

  • echo list.file > sort

Erklärung

Frage 8 von 24

1

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

Wähle eine der folgenden:

  • -l 5

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

  • -n

  • -n 5

Erklärung

Frage 9 von 24

1

The grep command…

Wähle eine der folgenden:

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

Erklärung

Frage 10 von 24

1

The grep command can be used with glob characters.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 11 von 24

1

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

Wähle eine der folgenden:

  • grep *start file.txt

  • grep $start file.txt

  • grep start file.txt

  • grep ^start file.txt

Erklärung

Frage 12 von 24

1

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

Wähle eine der folgenden:

  • grep ^test file.txt

  • grep $test* file.txt

  • grep *test file.txt

  • grep &test file.txt

Erklärung

Frage 13 von 24

1

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

Wähle eine der folgenden:

  • egrep start end file.txt

  • egrep ‘start|end’ file.txt

  • egrep start&end file.txt

  • egrep (start|end) file.txt

Erklärung

Frage 14 von 24

1

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

Wähle eine oder mehr der folgenden:

  • some

  • less

  • cat

  • more

Erklärung

Frage 15 von 24

1

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

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 16 von 24

1

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

Wähle eine der folgenden:

  • search

  • locate

  • where

  • find

Erklärung

Frage 17 von 24

1

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

Wähle eine der folgenden:

  • -f

  • -d

  • =

  • -D

Erklärung

Frage 18 von 24

1

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

Wähle eine der folgenden:

  • -D

  • -f

  • -d

  • #

Erklärung

Frage 19 von 24

1

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

Wähle eine der folgenden:

  • -l

  • -w

  • -C

  • -L

Erklärung

Frage 20 von 24

1

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

Wähle eine der folgenden:

  • -l

  • -L

  • -C

  • -w

Erklärung

Frage 21 von 24

1

Which command can be used to print line numbers?

Wähle eine der folgenden:

  • num

  • sort

  • ln

  • nl

Erklärung

Frage 22 von 24

1

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

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 23 von 24

1

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

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 24 von 24

1

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

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung