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

Test

Midterm

David Jaworski 40 preguntas Actualizado el 7 abr 2018

Hacer el test

Preguntas del test (40)

  1. 1Within a shell script, what symbol pair can be used to obtain all of the parameters passed to the shell script except the first?
    1. A$0
    2. B$z
    3. C$@
    4. D$&
  2. 2When logging on to a system interactively, in what order are the common startup files called?
    1. A/etc/profile, ~/.bashrc, ~/.bash_profile, /etc/bashrc
    2. B/etc/profile, ~/.bash_profile, ~/.bashrc, /etc/bashrc
    3. C~/.bash_profile, ~/.bashrc,/etc/bashrc, /etc/profile
    4. D/etc/bashrc, /etc/profile, ~/.bashrc, ~/.bash_profile
  3. 3Given the command
    find /proc/* 2>/dev/null | sed -n -e '/sda1 /p; d;'
    Which command's standard error will be redirected?
    1. Afind
    2. Bproc
    3. Csed
    4. Dsda1
  4. 4When a command is invoked with the exec building command, where does the invoked command execute?
    1. AThe invoked command executed in a seperate process
    2. BThe invoked command replaces the shell in the current process and executes there
    3. CThe invoked command executes in a new process in the background
    4. DThe invoked command immediately fails
  5. 5When is it necessary to reload a startup file (e.g /etc/profile) for some reason, which of the following commands would be used?
    1. Asource /etc/profile
    2. B. /etc/profile
    3. CBoth source /etc/profile and . /etc/profile will perform the reload
    4. DNeither source /etc/profile nor . /etc/profile will perform the reload
  6. 6What is a shell script?
    1. AA shell script is a program written in the C programming language
    2. BA text file containing the source code of a web page
    3. CA shell script is a program consisting of built-in and external commands, variables, parameters, and comments
    4. DA shell script is a program consisting of built-in and external commands only; other elements such as variables, parameters, and comments are not allowed
  7. 7What is the significance of the following line from a shell script,
    #!/bin/bash
    when it is the first line of the script?
    1. AIt is just a comment since it begins with the # symbol
    2. BIt tells the invoking shell to run the script using a new bash shell
    3. CIt tells the invoking shell to replace itself with a new bash shell to run the script
    4. DIt tells the invoking shell to run the script using any shell except bash
  8. 8What is the purpose of the built-in jobs command?
    1. ATo display a list of every child process ever launched from the current shell
    2. BTo list every running process on a system
    3. CTo list every process for the current user since the system was booted
    4. DTo display a list of the child process of the current shell that have not completed
  9. 9Which shell program is most commonly used on Linux systems
    1. Ash
    2. Bksh
    3. Cbash
    4. Dtsh
  10. 10Given the command
    find /proc/* 2>dev/null | grep sda1
    What is the special significance of the /dev/null potion of the command?
    1. A/dev/null is the name of the fine to which standard error is redirected and saved
    2. B/dev/null is a special device file that can be used to discard output. in this case the redirected standard error output
    3. C/dev/null is a placeholder that must be replaced before the command can be used
    4. D/dev/null causes the redirect to be ignored, the output is still sent to the screen

Información

Descripción
Midterm review
Idioma
English
Visitas
27
Historial
Creado el 4 feb 2017 · actualizado el 7 abr 2018
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?