Questions

  1. What section of the online user's manual and command reference holds administrative (not user) commands? Select one.

    1. Section 1

    2. Section 2

    3. Section 8

    4. Section n

    5. Section s

  2. In the bash shell, entering the !! command has the same effect as which one of the following?

    1. Ctrl-P and Enter

    2. Ctrl-N and Enter

    3. Ctrl-U and Enter

    4. !-2

    5. !2

  3. Name the command that displays pages from the online user's manual and command reference.

  4. Which of the following commands displays the comments from a bash script? Select all that apply.

    1. find "^#" /etc/rc.d/rc.local

    2. sed '/^#/ !d' /etc/rc.d/init.d/httpd

    3. grep ^# /etc/rc.d/init.d/httpd

    4. grep ^# /etc/passwd

    5. locate "^#" /etc/skel/.bashrc

  5. Which one of the following answers creates an environment variable VAR1, present in the environment of a bash child process?

    1. VAR1="fail" ; export VAR1

    2. VAR1="fail" \ export VAR1

    3. VAR1="fail"

    4. set VAR1="fail" ; enable VAR1

    5. export VAR1 \ VAR1="fail"

  6. Name the full path and name of the file that holds most of the information on system user groups.

  7. Which one of the following outcomes results from the following command?

    # chmod g+s /home/software
    1. The SUID bit will be set for /home/software.

    2. The SGID bit will be set for /home/software, preventing access by those not a member of the software group.

    3. The SGID bit will be set for /home/software, to keep group membership of the directory consistent for all files created.

    4. The sticky bit will be set for /home/software.

    5. The sticky bit will be applied to all files in /home/software.

  8. Consider the following ...

Get LPI Linux Certification in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.