LPI101 Sample Test
LPI101 Sample Test
1. A directory with a permission of 3775 allows members of the same group to read each others files
but will only allow users to delete files that they own.
a:true
b:false
2.You want to display only uncommented lines in the configuration file mgetty.conf. Which commands
would do this (choose 3):
a:grep -v '[^#]' mgetty.conf
b:grep '^[^#]' mgetty.conf
c:grep -v '^#' mgetty.conf
d:sed -e '/^#/ d' < mgetty.conf
4. Which tool is used to determine which shared libraries will be loaded by a binary:
a:ldconfig
b:ld-cache
c:ldd
5. Which signal is handled directly by the kernel and should be used as a last resource when
terminating a process:
a:SIGSTOP
b:SIGHUP
c:SIGTERM
d:SIGKILL
e:SIGDIE
________________________________________________________________________________________________
LinuxIT is registered in England No:04470427. Visit www.linuxit.com for more information.
LinuxIT Technical Education Centre
Training courses 2005
6.You wish to number non-blank lines in the file /var/log/messages and further process the output
through the script foo. Which commands will do this (choose 3):
a:cat /var/log/messages |nl| foo
b:cat -b /var/log/messages | foo
c:echo /var/log/messages | cat -b |foo
d:foo | cat -b /var/log/messages
e:nl < /var/log/messages |foo
7. On a SCSI based system the root-device must always be on the bootable SCSI disk
a: true
b: false
10. Which option in /etc/fstab allows any user to mount and unmount a device:
a:users
b:any
c:user
d:group
________________________________________________________________________________________________
LinuxIT is registered in England No:04470427. Visit www.linuxit.com for more information.