LPIC exam 101 trainer
By
Pygmalion
These questions are intended to help you train for the LPI exam. Please note that they are not official exam questions.
1.
While using the vi editor, you wish to move ahead one page. You should press the control key and:
A
D
F
U
2.
In which file would you look to find the base address of your system's sound card?
/proc/ioports
/proc/dma
/proc/interrupts
/proc/sysconfig
3.
User Pygmalion has successfully extracted and compiled a program from source code. Installing the binaries produces errors. What is the most likely reason?
The source code was compiled for a different CPU.
The permissions set in the /usr/bin directory are wrong.
The binaries require root privileges to be installed.
The wrong prefix was used during configuration of the source code.
4.
Which command would disconnect the users and allow you to safely execute maintenance tasks?
shutdown -r now
killall -9 inetd
telinit 1
/etc/rc.d/init.d/network stop
5.
The command mkfs -t ext3 -T largefile /dev/hdb1 creates what size of inode?
4 kilobyte
1 megabyte
2 megabyte
4 megabyte
6.
Your serial modem is not working. You start suspecting there's an IRQ conflict somewhere in the system. What command would you use to determine the modem's IRQ (the modem is on COM1)?
setserial /dev/ttyS0
cat /proc/interrupts
getserial /dev/ttyS0
cat /proc/irqs
7.
You killed a rogue process that filled /tmp with files with extension .foo, but trying to clean up /tmp you get the error: 'rm: argument list too long'. Which of the following commands will allow you to remove all *.foo files in /tmp?
rm `ls | grep '.foo$'`
ls *.foo | xargs rm
ls | grep '.foo$' | xargs rm
xargs rm `ls | grep '.foo$'`
8.
Your system is becoming a bit unreponsive due to a program with PID 9519. You don't want to kill it. What other option do you have?
nice +10 -p 9519
nice -10 -p 9519
renice +10 -p 9519
renice -10 -p 9519
9.
You're processing a file 'allmostempty.txt' with lots of empty lines. You want to get rid of these empty lines as they are totally useless for your purpose. Which command would be your best choice?
grep -v '^$' < allmostempty.txt
sed 's/^$//' < allmostempty.txt
grep '.+' < allmostempty.txt
sed -e '.+' < allmostempty.txt
10.
You are formatting a single hard disk for a Linux install. What is the maximum number of primary partitions you can create?
1
2
4
15
16