1. c. $PATH

  2. a. The !! command history expansion executes the previous command. Entering the Ctrl-P keystroke uses the Emacs key-binding bash to move up one line in the history; pressing Enter executes that command.

  3. The man command displays manpages.

  4. b AND c. find and locate do not search the contents of files. /etc/passwd is not a script.

  5. a. The variable must be set and exported. The semicolon separates the two commands.

  6. c. UPDATE

  7. a. 01;02;03;04;05;06;07;08;09;10. The -w option to seq instructs it to pad with zeros.

  8. a. cp should be aliased to the interactive mode with the -i option in .bashrc. .bash_profile normally doesn’t include aliases.

  9. e. The script has an error and will not produce the expected output. In a for statement, the loop variable does not have the dollar sign. Changing line 2 to for v1 in a1 a2 will correct the error and produce the output in answer b.

  10. d. The shadow password system has been implemented, placing all passwords in /etc/shadow as denoted by the x following the username.

  11. d. /etc/X11/xorg.conf

  12. c. ~/.Xresources

  13. d. Graphical login support for remote hosts on the network

  14. d. xfce and e. X11.

  15. c. An assistive technology that handles screen reading for a number of console applications

  16. c. The g indicates that we’re operating on the group privilege, and the +s indicates that we should add the “set id” bit, which means that the SGID property will be applied.

  17. b. /etc/syslog.conf

  18. c. Qmail

  19. d. /var/log/maillog

  20. e. With the top bit of the last byte set in the subnet mask (.128), there ...

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.