¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

Linux Exercises 1

krabby patty 14 preguntas

Hacer el test

Preguntas del test (14)

  1. 1What does the pwd command accomplish?
    1. AIt parses web page URLS for display.
    2. BIt prints wide displays on narrow paper.
    3. CIt changes the current working directory.
    4. DIt prints the name of the working directory.
    5. EIt prints the terminal's width in characters.
  2. 2What is the effect of the following command?

    $ myprog &> input.txt
    1. AAll of these.
    2. BNone of these.
    3. CStandard error to myprog is taken from input.txt.
    4. DStandard input to myprog is taken from input.txt.
    5. EStandard output and standard error from myprog are written to input.txt.
  3. 3Which of the following regular expressions will match the strings dog, dug, and various other strings but not dig?
    1. Adi*g
    2. Bd.ig
    3. Cd.g
    4. Dd[ou]g
    5. Ed[o-u]g
  4. 4Which of the following commands will number the lines in aleph.txt? (Select three.)
    1. Anl aleph.txt
    2. Bfmt aleph.txt
    3. Cod -nl aleph.txt
    4. Dcat -n aleph.txt
    5. Ecat -b aleph.txt
  5. 5You type a command into bash and pass a long filename to it, but after you enter the command, you receive a File not found error message because of a typo in the filename. How might you proceed?
    1. ARetype the command, but press the Tab key after typing a few letters of the long filename to ensure that the filename is entered correctly.
    2. BPress the Up arrow key, and use bash's editing features to correct the typo.
    3. CAny of these.
    4. DNone of these.
    5. ERetype the command, and be sure type the filename correctly, letter by letter.
  6. 6How many commands can you pipe together at one?
    1. A4
    2. B16
    3. C2
    4. D3
  7. 7You want to store the standard output of the ifconfig command in a text file (file.txt) for future reference, and you want to wipe out any existing data in the file. You do not want to store standard error in this file. How can you accomplish these goals?
    1. Aifconfig >> file.txt
    2. Bifconfig > file.txt
    3. Cifconfig | file.txt
    4. Difconfig 2> file.txt
    5. Eifconfig < file.txt
  8. 8Which of the following commands will print lines from the file world.txt that contain matches to changes and changed?
    1. Ased change[d-s] world.txt
    2. Bgrep change[ds] world.txt
    3. Cfind world.txt "change(d|s)"
    4. Dcat world.txt changes changed
    5. Eod "change'd|s'" world.txt
  9. 9What is the effect of the following command?

    $ pr report.txt | lpr
    1. ATabs are converted to spaces in report.txt, and the result is saved in lpr.
    2. BThe files report.txt and lpr are combined together into one file and sent to standard output.
    3. CThe file report.txt is formatted for printing and sent to the lpr program.
    4. DNone of these.
    5. EThe file report.txt is printed, and any error messages are stored in the file lpr.
  10. 10How do the > and >> redirection operators?
    1. AThe > operator redirects standard output; the >> operator redirects standard input.
    2. BThe > operator redirects standard output; the >> operator redirects standard error.
    3. CThe > operator creates a new file or overwrites an existing one; the >> operator appends to an existing file or issues an error message if the specified file doesn't exist.
    4. DThe > operator creating a new file or overwritees an existing one; the >> operator creates a new file or appends to an existing one.
    5. EThe > operator writes to an existing file but fails if the file deson't exist; the >> operator writes to an existing file or creates a new one if it doesn't already exist.

Información

Descripción
Test sobre Linux Exercises 1, creado por krabby patty el 22/09/2016.
Idioma
English
Visitas
4
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?