Answers
b. Both ps and top yield process status. None of the other listed commands are related to processes.
e. IDE disk drives are referred to as /dev/hd
x
, wherex
isa, b, c
, ord
. Partitions are numbered from 1 through 4 for primary and extended partitions and 5 through 16 for logical partitions.d. The tail command is used for checking the last lines of a text file. By default, it displays 10 lines.
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.b, c, and d. fsck is a frontend for the programs that actually do the checking. e2fsck and fsck.ext2 are links to the program that checks native Linux ext2 filesystems.
c. df reports disk information, including a percentage of the filesystems used. Answer a is incorrect because /home may not be the only partition on the physical disk.
e. /var and /tmp are mainly transient, /usr is typically static (and should be easy to reinstall from the original OS media), /root is simply a home directory for
root
, but /etc contains system configuration information that frequently changes.d. split -
n
outfile separates a file into multiple output files, each withn
lines, and names them outfileaa, outfileab, and so on. Since the original file had 12 lines and Carolyn split it into sets of 4 lines, the result is three files named glaa, glab, and glac, each containing 4 lines.c. CD-ROMs use the iso9660 ...
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.