117-101 - LPI Level 1 Exam 101
Go back to
LPI
Example Questions
The command mkfs -t ext3 /dev/hdb1 -T largefile creates what size of inode?
1 megabyte
Which are common procedures to implement samba with LDAP? (Choose two.)
Configure Samba password backend to point to OpenLDAP server
Include the samba schema into OpenLDAP
What run level represents multi-user?
3
Which of the following GNU commands would be the most likely command you'd use to find the system load average?
top
You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which command would disconnect the users and allow you to safely execute maintenance tasks?
init 1
What command should be invoked to give the user sally read and write, but not execute, access to the file strategy.txt using Extended ACL entries?
setfacl -m user:sally:rw strategy.txt
Which of the following is an example path to a Linux software RAID array?
dev/md1
What does the command mount -a do?
It mounts all file systems listed in /etc/fstab
You have not run apt-get on a system for some time, but it has been run on the system before. What apt-get command would you run to download the latest list of packages, but not the packages themselves?
apt-get update
Which of the following commands is run last during boot on a system with quotas enabled?
quotaon
In compliance with the FHS, in which of the following places are man pages typically found?
usr/share/man
You need to install a fax server. Which type of fax/modem should you install to insure Linux compatibility?
External Serial Fax/modem
Which of the following commands will print the inode usage on each mounted filesystem?
df -i
You wish to kill a process with a PID of 123. Select the command which will allow the process to "clean up" before exiting.
kill -15 123
Which command line option would you use to restrict the GNU find command to searching a particular number of subdirectories?
-maxdepth
You have an updated RPM called screensaver-1.1.i386. rpm. You have version 1.0 installed. Using RPM, how do you view the changelog of this file to see if you should install the update?
rpm -qp --changelog screensaver-1.1.i386. rpm
In order to append the output of ls to a file called bazz, which of the following command lines would you use?
ls >> bazz
How can you turn off the group quota in /pub?
quotaoff -gv /pub
How many SCSI ids for peripherals can SCSI-1 support?
7
Which of the following commands is equivalent to kill 1234?
kill -15 1234 or kill -s SIGTERM 1234
You have a USB storage device that you cannot get working. You have enabled all appropriate USB options in the latest 2.2 kernel but still cannot get your device working. What is most likely the source of the problem?
You are using the wrong kernel for this type of device
When installing XWindows the monitor wasn't recognised but now a data sheet with its specification is available. Which xorg.conf section must be edited to specify the correct values for several variables?
Monitor
What TWO permissions must a user have in order to run a shell script?
read
execute
Which option must be listed in /etc/fstab to activate user quotas automatically?
usrquota
What command would help you identify the I/O address range being used by the network card?
cat/proc/ioports
All items are required to enable USB support on a Linux system EXCEPT.
A USB 2.0 compatible device
Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Select TWO correct answers)
LABEL
UUID
Welcher vom folgenden Aussagen ist wahr, wenn hart-verknüpfte Dateien vorhanden sind?
Beide Dateien werden sich denselben inode teilen
What single command (no options or arguments) can be used to fully extract a file called abc.tar.bz2?
tar
What is the disadvantage of using the command kill -9 ?
The affected process is unable to clean up before exiting.
Which of the following is a limitation of the cut command?
The cut command cannot reorder fields.
What command will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?
cut -d: -fl,3 /etc/passwd
Which /etc/hosts.allow entries will permit access to sshd for users from the 192.168.1.0/24 subnet? (Choose TWO correct answers.)
sshd : 192.168.1.
sshd : 192.168.1.0/255.255.255.0
Which of the following programs is typically used to query installed debian packages? (Please select TWO that apply)
dpkg
dselect
Which of the following commands will load a kernel module along with any required dependency modules?
modprobe
In Bash, inserting "1>&2" after a command redirects
standard output to standard error
What should be done to ensure a client machine uses the recursive nameserver running on the IP address 192.168.0.1? (Choose TWO correct answers.)
Add nameserver 192.168.0.1 to /etc/resolv.conf.
Ensure that the dns service is listed in the hosts entry in the /etc/nsswitch.conf file.
Bob accidentally created the subdirectory \bobsdir in his home directory. He tried to remove the subdirectory with the command rmdir \bobsfile only to receive the error, "No such file or directory." Which command will remove the directory?
rmdir ~bob/\\bobsdir
Which command can be used to scan a specified network looking for IP addresses that appear to be in use?
nmap
What does the Filesystem Hierarchy Standard enable? (Select TWO answers)
Software to predict the location of installed files and directories
Users to predict the location of installed files and directories.
What does the character & when placed at the end of the command?
The process is sent to the background
What is the purpose of the bash built-in export command?
To setup environment variables for applications.
A server requires a GRUB2 boot option which will always boot to runlevel 1. Which line of a GRUB2 configuration file starts the beginning of the settings needed to make this new choice available?
linux
Which of the following lines from /etc/X11/XF86Config indicates what fonts can be found on a font server?
FontPath "unix/:7100"
Which file should be edited to select the network locations from which Debian installation package files are loaded?
etc/apt/sources.list
Identify the proper device for the third partition on the only SCSI drive on the system.
dev/sda3
Which of the following commands will securely copy the directory ./fyf/ to /var/tmp/ on the remote host deltaur using the remote user account kevin?
rsync -a -e sshfyf/ [email protected]:/var/tmp/
What tool can you use to print shared library dependencies?
ldd
You need to know where all the configuration files for the installed package named "postfix" are located. Assuming it was installed with rpm, which command will list this information for you?
rpm -qc postfix
Which of the following command syntaxes can be used to find hard link files of the file named password.txt?
find . -samefile password.txt