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. You enter the command date +%M. What does the output show you?
 
The current year.
The current month name.
The current month number.
The current hour.
The current minute.
The current second.
 
2. In GRUB's configuration file you find the line 'root (hd1,4)'. What is the corresponding device name on a Linux system?
 
/dev/hda4
/dev/hda5
/dev/hdb4
/dev/hdb5
 
3. Given the permission 4755, will the SUID bit be set?
 
Yes.
No.
 
4. What command will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd ?
 
cut -d: f1,3 /etc/passwd
chop -c 1,3 /etc/passwd
tac -1,3 /etc/passwd
fmt -u /etc/passwd
 
5. An administrator has issued the following command: # grub-install --root-directory=/custom-grub /dev/sda In which directory will the new menu.lst file be found?
 
/boot/grub
/root/grub
/custom-grub/boot/grub
/custom-grub/root/grub
/etc/grub
/etc/init.d/grub
 
6. You want to examine the changelog for the installed package postfix. Which command(s) will display the changelog?
 
rpm -Vc postfix
rpm -qpil postfix
rpm --changelog postfix
rpm -q --changelog postfix
rpm -qa --changelog postfix
 
7. On a Red Hat system, what command will update all installed packages to the latest available version?
 
yum install
yum update
yum all
yum -a
 
8. The command mkfs -t ext3 -T largefile /dev/hdb1 creates what size of inode?
 
4 kilobyte
1 megabyte
2 megabyte
4 megabyte
 
9. How would you list all PCI devices on your system?
 
pcimodules
lspci
cat /proc/pci
pci-info -l
 
10. Given the command 'ps -auxw | tee list', where will the process list be sent?
 
To standard output and to standard error.
To standard output and to a file called tee.
To standard output and to a file called list.
To a file called tee and to a file called list.