These are some questions for you to practice before you sit for your LPIC 101
Q1. Which of the following commands can be used to partition up a disk in preparation for installing the Linux operating system, or creating a disk for data storage?
a) admin
b) fdisk
c) format
d) mkfs
Q2. What command is used to reload the /etc/inittab file after it has been updated? Choose the most appropriate answer:
a) /sbin/init q
b) /sbin/init r
c) /sbin/init s
d) /sbin/init 6
Q3. What kind of hardware is represented by the device name /dev/hda?
a) Sound Card
b) Modem
c) IDE Hard Drive
d) SCSI Hard Drive
e) SATA Hard Drive
Q4. Which process is referred to as the “mother of all processes” and always has
PID 1?
a) mother
b) admin
c) administrator
d) init
e) bios
Q5. What command line would reboot a running Linux system immediately, forcing
an fsck of every drive on reboot?
a) /sbin/shutdown –r –F now
b) /sbin/shutdown –h –F now
c) /sbin/shutdown
d) /sbin/shutdown –r –f now
e) /sbin/shutdown –t –f
Q6. If my current directory is /opt and I wish to run the command /opt/runme, what
command(s) could I type (assuming /opt is not in your $PATH)? (Choose two)
a) /opt/runme
b) ./runme
c) runme
d) opt/runme
e) ~/runme
Q7. Which commands can be used to perform a search and replace on a file or a
text stream?
a) sed
b) tr
c) search
d) cat
e) more
Q8. You need to troubleshoot a hardware issue. Which command would let you view the kernel ring buffer to see what hardware was just added?
a) cat /var/log/boot.log
b) head /var/log/messages
c) dmesg | less
d) tail lastlog
Q9. What character is used after a command line to indicate that the command
should run in the background and return shell control to the user?
a) *
b) +
c) &
d) -
e) .
Q10. Which option to umask would set my default file permissions such that files are
created with these permissions: user has read/write, group has read/write, and
everyone else has read only?
a) umask 002
b) umask 022
c) umask 200
d) umask 220
e) umask 775
ANSWERS:
1) fdisk (b).
2) /sbin/init q (a).
3) IDE Hard Drive (c).
4) init (d).
5) /sbin/shutdown –r –F now (a).
6) /opt/runme,./runme (a),(b).
7) sed (a).
8) dmesg | less (c).
9) & (c).
10) umask 022 (b).
c) dmesg | less
d) tail lastlog
Q9. What character is used after a command line to indicate that the command
should run in the background and return shell control to the user?
a) *
b) +
c) &
d) -
e) .
Q10. Which option to umask would set my default file permissions such that files are
created with these permissions: user has read/write, group has read/write, and
everyone else has read only?
a) umask 002
b) umask 022
c) umask 200
d) umask 220
e) umask 775
ANSWERS:
1) fdisk (b).
2) /sbin/init q (a).
3) IDE Hard Drive (c).
4) init (d).
5) /sbin/shutdown –r –F now (a).
6) /opt/runme,./runme (a),(b).
7) sed (a).
8) dmesg | less (c).
9) & (c).
10) umask 022 (b).