EMT Practice Test

1. Question Content...


Question List

Question1: What should be done after updating the configuration file for syslogd in order to make the changes become effective? (Choose TWO correct answers.)

Question2: In capacity planning exercises, which tools assist in listing and identifying processes of interest?
(Choose TWO correct answers.)

Question3: During which stage of the boot process would this message be seen?
Ide0: BM-DMA at 0xff00-0xff07, BIOS settings: hda:DMA, hdb:DMA

Question4: What is the purpose of a PTR record?

Question5: Which option to the update-rc.d command will cause the removal of all symlinks to
/etc/rcX.d/*test2 even when the script /etc/init.d/test2 still exists?

Question6: The Linux kernel is loaded successfully by the boot loader. However, straight after the kernel mounts the root filesystem, the boot process stops and an error message regarding init is shown.
Which of the following actions is the best one to be used in order to identify and fix the problem?

Question7: Which program lists information about files opened by processes and produces output that can be parsed by other programs?

Question8: What command is used to send messages to all users currently logged in? (Specify ONLY the command without any path or parameters.)

Question9: Which RAID level provides the most redundancy?

Question10: A 2.6.9-ac1 kernel would be

Question11: Some users are unable to connect to specific local hosts by name, while accessing hosts in other zones works as expected. Given that the hosts are reachable by their IP addresses, which is the default log file that could provide hints about the problem?

Question12: According to the tcpdump output below, what is the IP address of the client host?
02:12:40.511381 IP 192.168.246.11.1045 > 192.168.246.1.22: S
3838532429:3838532429(0) win 5840 <mss 1460,sackOK,timestamp
31325740,nop,wscale 2>
02:12:40.511540 IP 192.168.246.1.22 > 192.168.246.11.1045: S
1209330085:1209330085(0) ack 383853 2430 win 5792 <mss
1460,sackOK,timestamp 11553457 3132574,nop,wscale 0>
02:12:40.511755 IP 192.168.246.11.1045 > 192.168.246.1.22: . ack 1 win
1460 <nop,nop,timestamp 3 132574 11553457>
02:12:40.515122 IP 192.168.246.1.22 > 192.168.246.11.1045: P 1:26(25)
ack 1 win 5792 <nop,nop,timestamp 11553460 3132574>
02:12:40.515511 IP 192.168.246.11.1045 > 192.168.246.1.22: . ack 26 win
1460 <nop,nop,timestamp 3132578 11553460>
02:12:40.515952 IP 192.168.246.11.1045 > 192.168.246.1.22: P 1:23(22)
ack 26 win 1460 <nop,nop,timestamp 3132578 11553460>

Question13: According to the configuration below, what is the e-mail address of the administrator for this domain?
$TTL 86400
$ORIGIN lpi.org
@ IN SOA test.lpi.org hostmaster.lpi.org (
2005010101
10800
604800
86400 )

Question14: For interpreting system rc scripts a shell is most commonly used. Please enter the first line found in such scripts.

Question15: Where should the LILO code reside, on a system with only one installation of Linux and no other operating systems?

Question16: On a Debian based system, which command can be used to stop the apache2 init script from running at boot time once the real script has been removed from /etc/init.d/?

Question17: You have configured a workstation to boot in runlevel 4, but you now find that the X server will not start correctly and the machine will not allow local access. What would be the most effective command to run at the LILO prompt to regain local access to the machine, when the last known working kernel image was linux?

Question18: Which file tells GRUB the paths of the filesystem partitions in both Linux format and in the GRUB syntax? (Specify the file name only with no path information)

Question19: This program has 3 operating modes: copy-in mode, copy-out mode, and copy-pass mode, and is used to copy files into or out of archives. What program is this? (Please provide the command name only, with no arguments or path.)

Question20: If the command arp -f is run, which file will be read by default?

Question21: What command is used to force a file-system check, when rebooting?

Question22: Which directory contains system-specific systemd unit files? (Specify the full path to the directory.)

Question23: A regular user, joe, has just run:
./configure && make && make install
to build and install a program. However, the installation fails. What could be done to install the program? (Choose TWO correct answers.)

Question24: You want to change the file that contains the message which is used at the login prompt when users log in locally. Please enter the file including the path.

Question25: In the following output, what percentage of time was the CPU waiting for pending I/O?
# vmstat 1 100
procs-------memory---------swap-----io-----system----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 0 282120 134108 5797012 0 0 0 2 0 0 0 0 100 0
0 0 0 282120 134108 5797012 0 0 0 0 1007 359 0 0 100 0
0 0 0 282120 134108 5797012 0 0 0 0 1117 577 0 0 100 0
0 0 0 282120 134108 5797012 0 0 0 0 1007 366 0 0 100 0

Question26: When compiling kernel modules, which make target will remove most generated files but keep the config file and enough build support to build external modules? (Please enter only the make target and no other words)

Question27: Which directory contains the system-specific udev rule files? (Specify the absolute path including the directory name)

Question28: In some older machines, the Linux kernel defaults to polling for the parallel printer port (/dev/lp0), even if it is capable of interrupt-driven operation (ECP). Which utility enables interrupt-driven operation of the parallel port?

Question29: Which THREE statements concerning automounter are true?

Question30: A system with SysV-init has a service installed called apache2. Which file controls the start and stop of this service and is referenced by the various runlevel directories?

Question31: Your newly-compiled kernel cannot find any modules it needs to load. What command was missed when compiling and installing the kernel?

Question32: You have finished updating and resolving dependencies for some source code. What command should you run before recompiling the code into binary form?

Question33: Which of the following commands will copy one disk partition /dev/sda3 to /dev/sdb3?

Question34: Which commands are used to load modules into the Linux kernel? (Choose TWO correct answers.)

Question35: Which of the following init systems comes along with an own UEFI boot loader?

Question36: What information can be found in the log file specified by the status parameter in OpenVPN's server.conf? (Select TWO correct answers)

Question37: Messages from programs are not appearing in the user's native language. What environment variable must be set for this to happen?

Question38: A database application requires a maximum shared memory segment (shmmax) of 2GB (2147483648 Bytes). Which configuration file should be modified to set this kernel parameter permanently? (Specify the full name of the file, including path.)

Question39: An administrator has placed an executable in the directory /etc/init.d, however it is not being executed when the system boots into runlevel 2. What is the most likely cause of this?

Question40: What directory is commonly used as a supplemental location for additional scripts called by the global bash login script?

Question41: Which of the following configuration files are used by tcpwrapper?

Question42: Which of the following best describes the format of the /etc/fstab file?

Question43: What is the purpose of the smartd daemon?

Question44: Which directory in /dev/disk/ can be used to determine the UUID of a connected hard disk?

Question45: A DNS server has the IP address 192.168.0.1. Which TWO of the following need to be done on a client machine to use this DNS server?

Question46: Which of the following commands erases the contents of the /dev/sdb3partition?

Question47: After manually compiling and installing a new kernel, what has to be done regarding the initramfs?

Question48: Which of the following are common Linux filesystem types used for root partitions? (Choose THREE correct answers.)

Question49: Please enter the complete path to the main configuration file for syslogd, which logs system messages on Linux systems?

Question50: User Joseph has successfully extracted and compiled a program from source code. Installing the binaries produces errors. What is the most likely reason?

Question51: Which of the following files are used to resolve hostnames to IP addresses? (Choose TWO correct answers.)

Question52: You find that a host (192.168.1.4) being used on one of your client's networks has been compromised with a backdoor program listening on port 31337.
Your client requests a list of originating IP addresses connecting to that port.
Using a Linux workstation as traffic analyzer, which of the following commands would gather the data requested by the client?

Question53: Which of the following is a CD-ROM filesystem standard?

Question54: Because of a bad BIOS LBA translation, a booting system displays an error instead of a LILO prompt.
Complete the error message with the error number: L

Question55: You decide to use the logical volume manager (LVM) to manage four 4GB disk drives. After creating the volume group, how would you create a 10GB logical volume called big-app?

Question56: 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?

Question57: A machine is running in single user mode and, as such, not all file-systems are accessible. What command must be run to make all of the other file-systems listed in /etc/fstab accessible?

Question58: Which of the following commands displays the physical path of the kernel module named dummy?

Question59: When bash is invoked as an interactive login shell, which of the following sentences is true?

Question60: Which of the following commands creates a Btrfs subvolume named volumein/mnt?

Question61: After unpacking the source code for a Linux kernel, what is the first make command that should be run which will delete any current configuration and all generated files?
This command will ensure that no inappropriate files were left in the kernel archive by the maintainer.

Question62: How can DMA be enabled for the device /dev/hda?

Question63: On a Linux node with multiple active networks interfaces, each having a default route to the Internet, which default route is preferred?

Question64: In which directory is the Linux kernel documentation be found?

Question65: A BIND server should be upgraded to use TSIG. Which configuration parameters should be added, if the server should use the algorithm hmac-md5 and the key skrKc4DoTzi/tAkllPi7JZA== ?

Question66: The correct command sequence to create logical volumes on a Linux system is:

Question67: The IDE hard drive /dev/hda does not have DMA enabled. Which command must be run to enable DMA on it?

Question68: What command can be used on an existing (formatted) partition, to configure the interval between disk checks when mounting partitions?

Question69: Which of the following properties should be recorded in order to monitor the quality of a network link? (Choose two.)

Question70: Which of the following commands will provide the PIDs of the processes sorted by which are using the most CPU cycles on the Linux system?

Question71: What information is found in the following excerpt from the file /proc/mdstat? (Choose two.)

Question72: Which single command will extract data from the file abc.tar.bz2

Question73: Which command is used to make an exact copy, at a single point in time, of a logical volume while still allowing the original logical volume to be updated?

Question74: Which single command will simulate a failed device within a RAID 5 array?

Question75: A BIND server should never answer queries from certain networks or hosts. Which configuration directive could be used for this purpose?

Question76: Which of the following commands will list the IPv4 neighbors of the current system? This includes IP and MAC addresses. (Choose TWO correct answers.)

Question77: Where would fsck put any unreferenced file or file fragments on a ext4 filesystem?

Question78: Which two LVM commands are missing from the following sequence which is used to create a logical volume and make use of it on a Linux system?
pvcreate, ___________, __________, mkfs, mount

Question79: What happens if the Linux kernel can't mount the root filesystem when booting?

Question80: During booting, when the Linux kernel loads an initramfs file, which command from the initramfs will be executed first, if present?

Question81: To securely use dynamic DNS updates, the use of TSIG is recommended. Which TWO statements about TSIG are true?

Question82: 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?

Question83: One of the IDE hard drives in a server is transferring data very slowly. What command must be run to enable DMA on it?

Question84: According to the tcpdump output below, what is the IP address of the client host?
14:17:19.225220 IP 192.168.1.106.33239 > 192.168.1.127.22: S
4158312222, win 5840, options [mss 1460,sackOK,TS val 806043 ecr
0,nop,wscale 6]
14:17:19.242943 IP 192.168.1.127.22 > 192.168.1.106.33239: S.
4013568495 ack 4158312223, win 5792, options [mss 1460,sackOK,TS val
565852 ecr 806043,nop, wscale 6]
14:17:19.243111 IP 192.168.1.106.33239 > 192.168.1.127.22: . ack 1, win
92, options [nop,nop,TS val 806045 ecr 565852]
14:17:19.264654 IP 192.168.1.127.22 > 192.168.1.106.33239: P. seq 1:40, ack 1, win 91, options [nop,nop,TS val 565856 ecr 806045]

Question85: Which hdparm command-line options will set an IDE hard disk to use both DMA and 32-bit I/O support?

Question86: A Linux machine freezes during boot. To boot directly to a shell prompt so that editing of files and manual starting of services is possible which command line must be passed to the kernel for the boot process?

Question87: What is the device name for the first SCSI tape drive on a system when used without automatic rewinding after each write operation? (Please specify the full path to the device.)

Question88: What command discards unused blocks on a mounted file system in order to support SSD devices? (Specify ONLY the command without any path or parameters.)

Question89: A correctly formatted entry has been added to /etc/hosts.deny to prevent certain clients from connecting to a service but this is having no effect. What could be the cause of this? (Choose TWO correct answers.)

Question90: Which of the following is not a common bash startup script file?

Question91: What is the purpose of the command vgextend?

Question92: What backup arrangement should be used for an intranet web server the contents of which is updated fairly regularly by different staff?

Question93: What command can be used to configure the baud rate on a serial port?

Question94: How can the label root be added to the ext2 file-system on /dev/sda1? Please enter the command with all parameter(s) and/or option(s):

Question95: Which /etc/hosts.allow entries will permit access to sshd for users from the 192.168.1.0/24 subnet? (Choose TWO correct answers.)

Question96: Which of these commands allows you to use shared libraries that are in /usr/local/lib?

Question97: What command is used to re-add a partition to a software RAID setup?

Question98: The following is an excerpt from the output of tcpdump -nli eth1 'udp':
13:03:17.277327 IP 192.168.123.5.1065 > 192.168.5.112.53: 43653+ A?
lpi.org. (25)
13:03:17.598624 IP 192.168.5.112.53 > 192.168.123.5.1065: 43653 1/0/0 A
198.51.100.42 (41)
Which network service or protocol was used?

Question99: You type sysctl -a as root. What can you expect to have happen?

Question100: Which of these would be the simplest way to configure BIND to return a different version number to queries?

Question101: Please enter the command with all parameters and arguments, that could be used by root to list the cron jobs for the user john.

Question102: Which directory contains the PCMCIA configuration files?

Question103: According to the Filesystem Hierarchy Standard (FHS), what is the path to the Linux kernel source and may be a symbolic link to the real Linux source code? (Please specify the full path with no version information.)

Question104: Which site-specific configuration file for the shadow login suite must be modified to log login failures? Please enter the complete path to that file.

Question105: After configuring a new 2.4 series kernel, all dependencies, such as included files, need to be created. How can this be achieved?

Question106: 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?

Question107: Which of the following commands restores only those files containing lpi in their name from the archive lpifiles.tar.gz?

Question108: After a crash, the system needs to be booted into runlevel 1. Which option(s) must be typed at the LILO prompt to achieve this, assuming that the working kernel image is called 'linux'?

Question109: On a system with separate partitions for /, /usr, /var, /tmp, which filesystem[s] can safely be mounted readonly?

Question110: Which command will report information on memory usage, paging and block input/output?

Question111: In which directory tree are files modified when changing kernel parameters using the command sysctl?

Question112: The Human Interface Device (HID) is being used, which of the following represents a USB mouse connected to the PC?

Question113: Which port must be open on a firewall, to allow a DNS server to receive queries? (Enter only the port number).

Question114: Which of the following files will be looked for and used by GNU make, if one of them exists, unless a different file is specified on the command line when trying to compile software from source code? (Choose TWO correct answers.)

Question115: Which command is used to install a new LILO boot loader?

Question116: Which TWO of the following wireless tools can be used to check the wireless network link quality?

Question117: Which e2fsck option is used to automatically repair an ext2 file system?

Question118: The users of the local network complain that name resolution is not fast enough. Enter the command, without the path or any options, that shows the time taken to resolve a DNS query.

Question119: What is incorrect about these entries in /etc/hosts which could be causing host name lookup problems with host2?
host1 192.168.1.12
host2 192.168.1.12

Question120: What directive can be used in named.conf to restrict zone transfers to the 192.168.1.0/24 network?

Question121: With which command can the reserved blocks on /dev/hda1 be displayed? (Enter the command with all parameters and/or options)

Question122: A system has one hard disk and one CD writer which are both connected to SATA controllers.
Which device represents the CD writer?

Question123: To make a system backup, the simplest and fastest way is to use the tar command. Select the correct alternative below that shows the three tar parameters that create, list and expand a tar file respectively.

Question124: Configuration of X is complete and now the default runlevel can be changed from runlevel 3 to runlevel 5. In which of the following configuration files should this be done?

Question125: What command is used to create an ISO9660 filesystem that can be properly accessed from a Windows 95/98 machine?

Question126: Following the instructions contained in the README file of an application, the make command was executed but the following message was displayed on the screen:
Make: *** No targets specified and no makefile found. Stop.
Which are the TWO possible causes for this problem?

Question127: Which option, when passed to the hostname command, will return the name of the DNS domain?
(Provide only the option)

Question128: Which file contains the software RAID configuration? (Please enter the file-name without the path)

Question129: Which of the following commands will erase the contents of the /dev/sdb3 partition?

Question130: Which single parameter, when passed to nmap, will instruct nmap to perform a fast scan?
(Provide only the option)

Question131: You use top to examine the CPU time being consumed by various processes on your system.
You discover that one process, dfcomp, is consuming more than 90 percent of your system's CPU time. What can you conclude?

Question132: What happens when the Linux kernel can't mount the root filesystem when booting?

Question133: A new PCMCIA network card is not functioning correctly. To troubleshoot this, the socket information should be checked. How can this be done? (Choose two.)

Question134: Which program can be used to adjust the DMA settings of an IDE hard drive? Please enter it without path, parameters or arguments

Question135: Please enter the complete path to the main init process configuration file.

Question136: The mailserver is currently called fred, while the primary MX record points to mailhost.example.org.
What must be done to direct example.org email towards fred?

Question137: What directive can be used in named.conf to restrict zone transfers to the 192.168.1.0/24 network?

Question138: What keyword is missing in the following line from /etc/fstab in order to make a USB flash device writeable by the user fred when mounted:
/dev/sda1 /mnt/usbflash vfat defaults,users,______=fred,umask=022, 0 0
(Provide the option name only without any settings)

Question139: The main configuration file for autofs has this entry:
/home /etc/auto.home
What is the meaning of the /etc/auto.home file?

Question140: Where is the LILO boot loader code typically installed on a system with only a single Linux installation and no other operating systems?

Question141: In the following output, the load averages represent the system load averages for what time frames?
# uptime
12:10:05 up 18 days, 19:00, 2 users, load averagE. 0.47, 24.71, 35.31

Question142: How can you manually add an entry to your system's ARP cache?

Question143: After a lot of write operations, the administrator want to ensure that the kernel flushes the file system buffers to disk. Which command will accomplish this? (Specify ONLY the command without any path or parameters.)

Question144: Which command with all parameters and arguments, can be used by root to erase the cron job list for the user fred?

Question145: What does a 0 in the last field (fsck order) of /etc/fstab indicate about the filesystem?

Question146: What script is included with the kernel source to patch a kernel?

Question147: Hundreds of people log in to a server from remote locations per day. Which of the following commands show remote SSH, FTP & telnet sessions for a particular day?

Question148: You've determined that the SSH server is being started by the /etc/rc2.d/S16ssh startup script (or a link of that name). You want to prevent this server from running in runlevel 2. What is the most reliable way to do this?

Question149: To check winbind functionality, you have try:
wbinfo -u
getent passwd
What is the next action?

Question150: In which subdirectory of /proc is information about PC Cards, which are connected and recognized by a 2.6 kernel stored? Please enter the complete path.

Question151: What command is used to permanently set the options in the kernel when making a boot disk?

Question152: Which file in /proc contains information on the status of local software RAID devices?

Question153: You have installed some new libraries, but these are not available to programs and are not listed by ldconfig -p. What file should the path to the libraries be added to, before running ldconfig?

Question154: The following command has just been run successfully:
Cd /opt; tar xvf /dev/nst0;
What will happen if the command sequence is run again?

Question155: After configuring a new kernel, what file under /usr/src/linux/ contains the configuration?

Question156: In the output of sar -b, what does tps stand for?

Question157: Consider the following /etc/fstab file:
/dev/hda1 swap swap defaults 0 0
/dev/hda2 / ext2 defaults 1 1
/dev/hda3 /home ext2 defaults 1 2
none /proc proc defaults 0 0
/dev/fd0 /media/floppy vfat user,noauto 0 0
What command can an ordinary (non-root) user use to mount a floppy disk in this system?
(Please enter the command with all parameters and/or options)

Question158: DNSSEC is used for?

Question159: What command must you type as root to have the system re-scan the directories on the library path to enable programs to find dynamic libraries in these directories?

Question160: Which of the following commands can be used to list IPv4 addresses and MAC addresses for IP devices that the system has seen on the local network?

Question161: After changing the default runlevel in the init configuration file, the system boots in a different than the intended runlevel. Where else could be this different runlevel be defined?

Question162: Which of the following is a userspace application used to modify EFI entries on a Linux system?

Question163: On a server running the 3.4.50-11 Linux kernel, which file in the /boot directory contains the kernel configuration parameters?

Question164: What information does the file modules.dep provide?

Question165: What is the purpose of a system mount unit?

Question166: Which is the main configuration file for the SystemV init process? (Specify the full name of the file, including path.)

Question167: When building an RPM package, which rpmbuild option is used to unpack sources and apply patches before proceeding with the next steps?

Question168: What command is used to mount a floppy disk image under /mnt/floppy?

Question169: What is the purpose of the command udevadm monitor?

Question170: A new kernel version needs to be compiled to use a new feature. If the old kernel configuration file is available, which make target creates a configuration file for the new kernel based on the configuration of the old kernel?

Question171: Which of the following commands can be used to access the content of a ramdisk file (/boot/initrd) used by the kernel at boot time?