Deck 7: LPIC-2 Exam 201

Full screen (f)
exit full mode
Question
If the file containing the Linux kernel is deleted, what happens when the system boots?

A) The system starts normally since the bootloader copies the kernel to the master boot record of the hard disk
B) Instead of the kernel, the initramfs is loaded and instructed to mount the root filesystem and reinstall the kernel from the original package or from source
C) The bootloader mounts the root filesystem read-only and launches /bin/sh directly in order to allow the administrator to reinstall the kernel
D) Without a kernel system cannot boot and, depending on the bootloader, an error is displayed
Use Space or
up arrow
down arrow
to flip the card.
Question
How can the label root be added to the ext4 filesystem on /dev/sda1 ?

A) relabel /dev/sda1 root
B) tune2fs -L root /dev/sda1
C) echo 'root' > /proc/fs/sda1/label
D) labelfs --device /dev/sda1 root
Question
Which of the following is a userspace application used to modify EFI entries on a Linux system?

A) efieditor
B) configefi
C) efimanager
D) efiboottmgr
E) efibootedit
Question
Which of the following commands creates a Btrfs subvolume named volume in /mnt ?

A) btrfs subvolume add -n volume /mnt
B) btrfs create subvolume /mnt volume
C) btrfs-subvolume create /mnt/volume
D) btrfs subvolume new volume /mnt
E) btrfs subvolume create /mnt/volume
Question
Fill in the blank. What command ensures that the file systems are written to disk after a lot of write operations? (Specify ONLY the command without any path or parameters.)
Question
Which sub command to crypsetup shows information about an encrypted LUKS partition?

A) lu ksDump lu ksDump
B) luksInfo
C) luksDebug
D) luksLS
E) luksShow
Question
Which of the following is a CD-ROM filesystem standard?

A) OSI 9660
B) ISO 9660
C) SR0FS
D) ISO 8859
E) ROM-EO
Question
Fill in the blank. What command will remove a physical volume from a volume group? (Specify ONLY the command without any path or parameters.)
Question
What is the purpose of an initramfs during the Linux system start?

A) It loads required modules and starts sub sytems like LVM to make the root file system accessible to the kernel
B) It moves the kernel from normal system memory to initram memory to speed up kernel access
C) It copies the root file system's content to RAM to speed up the system and reduce writes to disk
D) It creates a ram disk to store volatile data for directories like /tmp to reduce writes to disk It creates a ram disk to store volatile data for directories like /tmp to reduce writes to disk
Question
What is the purpose of a system mount unit?

A) It is used by the command systemd-mount and allows users to mount partitions to mount points of their choice It is used by the command systemd-mount and allows users to mount partitions to mount points of their choice
B) It is used only to mount network file systems to local mount points. It cannot be used for local media
C) It is created by the command systemd-fstab-generator to integrate entries from /etc/fstab into the system boot process It is created by the command systemd-fstab-generator to integrate entries from /etc/fstab into the system boot process
D) It is used by the command mount when using system to mount and unmount file systems mount when using system to mount and unmount file systems
Question
What component of a system does smartd monitor?

A) CPU
B) RAM
C) Hard drives
D) Ethernet traffic
Question
Due to extreme system use, a Linux system requires some additional swap space. To initialize 5 GB of additional swap space, which combination of commands should be used?

A) dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; mount /tmp/swapfile
B) dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; swapon /tmp/swapfile
C) dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; swapon /tmp/swapfile
D) touch -5G /tmp/swapfile; swapon /tmp/swapfile
E) mkswap /tmp/swapfile 512000; swapon /tmp/swapfile
Question
Which of the following init systems comes along with an own UEFI boot loader?

A) systemd
B) SysVinit
C) Upstart
D) OpenRC
E) launchd
Question
Fill in the blank. Which directory contains system-specific systemd unit files? (Specify the full path to the directory.)
Question
What effect does the -f option to the update-rc.d command have on files in the /etc/rcX.d/ and /etc/init.d/ directories?

A) It will force the removal of the symlinks in /etc/rcX.d/ even when the links are read only It will force the removal of the symlinks in even when the links are read only
B) It will remove both the symlinks in /etc/rcX.d/ and the init script in /etc/init.d/ It will remove both the symlinks in and the init script in
C) It will remove the init script in /etc/init.d/ and the symlinks in /etc/rcX.d/ and update the package information of installed files It will remove the init script in and the symlinks in and update the package information of installed files
D) It will force the removal of symlinks in /etc/rcX.d/ even if the corresponding init script still exists in /etc/init.d/ It will force the removal of symlinks in even if the corresponding init script still exists in
Question
Fill in the blank. Which is the main configuration file for the SystemV init process? (Specify the full name of the file, including path .)
Question
A Linux server running systemd booted to rescue.target for maintenance. Which commands are used to restore the server to its usual target?

A) telinit 0
B) systemctl default
C) sync
D) systemctl emergency
E) systemctl reboot
Question
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?

A) lvcclone
B) lvcreate
C) lvm2
D) lvsnap
E) lvsnapshot
Question
Which command is used to install a GRUB boot loader into the master boot record?

A) grub-install
B) grub-mkconfig
C) grub-install-mbr
D) grub-glue-mbr
E) grub-mbr-setup
Question
Fill in the blank. What keyword is missing in the following line from /etc/fstab in order to grant the user fred write access to the files in the vfat file system on /dev/sdb1 : /dev/sdb1 /mnt/usbflash vfat defaults, _________=fred, umask=022, 0 0 (Specify ONLY the option name without any path or parameters.)
Question
Fill in the blank. Which program lists information about files and network connections opened by processes? (Specify ONLY the command without any path or parameters.)
Question
Which of the following properties should be recorded in order to monitor the quality of a network link?

A) Bandwidth in both directions
B) Number of nodes using the link
C) Effective Latency
D) Number of IPv4 and IPv6 packets
E) Number of used TCP ports
Question
A network client has an Ethernet interface (eth0) configured with an IP address in the subnet 192.168.0.0/24. This subnet has a router, with the IP address 192.168.0.1, that connects this subnet to the Internet. Which of the following commands can be used on the client to enable it to use the router as its default gateway?

A) route add default gw 192.168.0.1 eth0
B) ifconfig eth0 defaultroute 192.168.0.1
C) ip route add default via 192.168.0.1
D) echo defaultroute 192.168.0.1 >>/etc/resolv.conf
E) route add defaultgw=192.168.0.1 if=eth0
Question
In the output of sar -b , what does tps stand for?

A) Terrabyte per second
B) Traffic per second
C) Transfers per second
D) Total data per second
E) Terrabit per second
Question
Which of the following configuration files are used by tcpwrapper?

A) /etc/tcpd.allow and etc/tcpd.deny /etc/tcpd.allow and etc/tcpd.deny
B) /etc/tcpwrapper.allow and /etc/tcpwrapper.deny /etc/tcpwrapper.allow /etc/tcpwrapper.deny
C) /etc/hosts.allow and /etc/hosts.deny /etc/hosts.allow /etc/hosts.deny
D) /etc/service.allow and /etc/service.deny /etc/service.allow /etc/service.deny
Question
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?

A) configure
B) config.h.in
C) makefile
D) Makefile
E) Makefile.in
Question
What is the minimum number of disks required in a fully redundant RAID5 array?

A) 1
B) 2
C) 3
D) 4
E) 5
Question
In order to gather performance data with sar over a longer period of time, which command should be run periodically from cron?

A) sa1
B) sarmon
C) sarec
D) sadf
E) sarcron
Question
Fill in the blank. The users of the local network complain that name resolution is not fast enough. Which command shows the time taken to resolve a DNS query? (Specify the command without path.)
Question
Which commands below are useful to collect data about remote filesystem connections?

A) pidstat
B) nfsiostat
C) sadf
D) cifsiostat
E) fsiostat
Question
In the following output of the command uptime, the load averages represent the system load averages for what time frames? 12:10:05 up 18 days, 19:00, 2 users, load average: 0.47, 24.71, 35.31

A) 1, 5 and 15 minutes
B) 1, 15 and 30 minutes
C) 5, 20 and 25 seconds
D) 15, 30 and 60 minutes
E) 15, 45 and 90 seconds
Question
A regular user 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?

A) Install the binaries manually with suinstall Install the binaries manually with suinstall
B) Run make install with root privileges Run make install with root privileges
C) Do not run ./configure in order to maintain the default configuration for correct installation Do not run ./configure in order to maintain the default configuration for correct installation
D) Rerun ./configure with a --prefix option where the user has permissions to write Rerun with a --prefix option where the user has permissions to write
E) Run make install_local to install into /usr/local/ make install_local to install into /usr/local/
Question
What action should be performed after increasing the size of a logical volume?

A) Run vgresize Run vgresize
B) Increase the size of the filesystem used for the logical volume
C) Run 1vresize Run 1vresize
D) Remount the logical volume
Question
Which command reports information on memory usage, paging and block input/output?

A) free
B) memshow
C) lsof
D) pidof
E) vmstat
Question
The following command has just been run successfully: Cd /opt; tar xvf /dev/nst0; What will happen if the command sequence is run again?

A) An error saying that there is no tape present is generated because the tape has been ejected after being used
B) The contents of /opt will be restored again The contents of /opt will be restored again
C) The entire contents of /opt will be replaced with the contents of the next file on the tape The entire contents of will be replaced with the contents of the next file on the tape
D) The contents of /opt will have additional content added from the next file on the tape /opt will have additional content added from the next file on the tape
Question
Which of the following commands erases the contents of the /dev/sdb3 partition?

A) rm /dev/sdb3
B) dd if=/dev/zero of=/dev/sdb3
C) dd of=/dev/zero if=/dev/sdb3
D) umount /dev/sdb3
Question
A web application server contains 64GB of RAM and two swap partitions on normal hard disk drives, each with a size of 64 GB. Within the last month, the average number of user sessions on this server has grown by 20 percent. At the same time, the average usage of RAM increased from 65 to 75 percent, while the swap space is almost not used at all. It is expected that the number of user sessions will continue to increase by about 15 to 20 percent each month. Which of the following reactions would be appropriate in response to these observations?

A) Delay any hardware upgrade until there is a significant consumption of swap space to ensure an efficient usage of the available hardware
B) Create a RAID 1 device on the two swap partitions to avoid data loss in case swap space has to be used in the future
C) Consider the installation of an additional application server to distribute the load if the expected growth continues over several months
D) Move the web application's scripts and content a ram disk in order to ensure fast access and to avoid the need for swap space
E) Update the hardware to increase the amount of available RAM to avoid using swap space
Question
In which directory tree are files modified when changing kernel parameters using the command sysctl ?

A) /sys/kernel/
B) /proc/kernel/
C) /proc/sys/
D) /lib/sys/
E) /sys/proc/
Question
Which of the filter keywords below could be used in the following command: tcpdump -i eth0 ____________ 203.0.113.8

A) host
B) ip
C) src
D) dst
E) ipv6
Question
Which of the following commands restores only those files containing lpi in their name from the archive lpifiles.tar.gz ?

A) tar xvzf lpifiles.tar.gz --wildcards '*lpi*'
B) tar xvzwf lpifiles.tar.gz '*lpi*'
C) tar -xvfz lpifiles.tar.gz --deep '*lpi*'
D) tar -xvzf lpifiles.tar.gz --subdirs '*lpi*'
E) tar xvzf lpifiles.tar.gz --globbing '*lpi*'
Question
After the downloading patch-4.6.4.xz from http://kernel.org, what are the next steps to prepare the build of a version 4.6.4 Linux kernel?

A) Uncompress the file and move the resulting directory to /usr/src/linux Uncompress the file and move the resulting directory to /usr/src/linux
B) Apply the patch file to the kernel source directory containing kernel version 4.6.0
C) Apply the patch file to the kernel source directory containing kernel version 4.6.3
D) Uncompress the file using xz to get the uncompressed patch file Uncompress the file using xz to get the uncompressed patch file
E) Use patch to apply the uncompressed patch file to the source directory of any previous kernel version Use patch to apply the uncompressed patch file to the source directory of any previous kernel version
Question
Fill in the blank. After installation of a self-compiled kernel, modules that need to be loaded cannot be found. What make target was likely missed while installing the kernel? (Specify ONLY the make target without any command or parameters.)
Question
On a server running the 3.4.50-11 Linux kernel, which file in the /boot directory contains the kernel configuration parameters?

A) config-linux-3.4.50-11
B) config-3.4.50-11
C) system-3.4.50-11
D) vmlinuz-3.4.50-11
E) rc.config-3.4.50-11
Question
What is the purpose of the command udevadm monitor?

A) It listens to kernel events produced by a udev rule and prints information to the console
B) It monitors the /dev/ directory for new devices
C) It monitors the udev process and prints performance statistics to the console
D) It communicates with D-Bus to setup new devices
Question
Which of the following commands displays the physical path of the kernel module named dummy ?

A) modprobe -i dummy
B) modinfo -n dummy
C) modpath -v dummy
D) depmod -n dummy
E) modshow -p dummy
Question
Which of the following commands shows capabilities and usable frequencies for the wireless interface wlan0 ?

A) iw phy pyh0 info
B) iw dev wlan0 info
C) iw dev wlan0 show
D) iw phy wlan0 show
E) iw phy0 show
Question
Which of the following commands adds a static IPv6 address to the network interface eth0?

A) ip add addr 2001:db8::1337/64 dev eth0
B) ip -6 add addr 2001:db8::1337/64 dev eth0
C) ip addr add 2001:db8::1337/64 dev eth0
D) ip -6 addr add new 2001:db8::1337/64 dev eth0
E) ip addr add -6 2001:db8::1337/64 dev eth0
Question
The following is an excerpt from the output of tcpdump -nli eth1 : <strong>The following is an excerpt from the output of tcpdump -nli eth1 :   Which network service or protocol was used?</strong> A) FTP B) HTTP C) SSH D) DNS E) DHCP <div style=padding-top: 35px> Which network service or protocol was used?

A) FTP
B) HTTP
C) SSH
D) DNS
E) DHCP
Question
Which of the following parameters instructs the kernel at boot time to use only one of the available processors?

A) maxcpus=1
B) usecpus=1
C) smpcpus=1
D) vcpumx=1
E) vmxcpus=1
Question
Which of the following commands by default provides the PIDs of the processes sorted by which are using the most CPU cycles on the Linux system?

A) top
B) uptime
C) ps aux
D) vmstat
E) freemem
Question
What information is found in the following excerpt from the file /proc/mdstat ? <strong>What information is found in the following excerpt from the file /proc/mdstat ?  </strong> A) One of the disks in /dev/md0 has failed and a spare disk is used to recreate full redundancy B) The spare disk /dev/sda1 is used to restore full redundancy after the current recovery C) The information [UU_] means, that the raid is missing one disk and is not fully redundant D) The device is using version 1.2 metadata to allow LILO and GRUB Legacy to use /dev/md0 as the boot partition. This would not have been necessary with GRUB2 E) The information [3/2] means that 3 RAID disks belong to the array and 2 disks are spare. Together they equal the number of available disks <div style=padding-top: 35px>

A) One of the disks in /dev/md0 has failed and a spare disk is used to recreate full redundancy
B) The spare disk /dev/sda1 is used to restore full redundancy after the current recovery
C) The information [UU_] means, that the raid is missing one disk and is not fully redundant
D) The device is using version 1.2 metadata to allow LILO and GRUB Legacy to use /dev/md0 as the boot partition. This would not have been necessary with GRUB2
E) The information [3/2] means that 3 RAID disks belong to the array and 2 disks are spare. Together they equal the number of available disks
Question
After manually compiling and installing a new kernel, what has to be done regarding the initramfs?

A) To initramfs is independent of the kernel and should not be modified unless the hardware configuration of the machine has changed
B) Since the initramfs contains kernel modules, a new initramfs must be built for the new kernel
C) During the compilation of the Linux kernel, a new initramfs is built automatically. The new initramfs only needs to be installed
D) The system should be restarted since the initramfs reconfigures itself for the new kernel during the startup of the system
Question
What should be done to ensure a client machine uses the recursive nameserver running on the IP address 192.168.0.1?

A) Add nameserver 192.168.0.1 to /etc/resolv.conf Add nameserver 192.168.0.1 to /etc/resolv.conf
B) Run route add nameserver 192.168.0.1 Run route add
C) Run ifconfig eth0 nameserver 192.168.0.1 ifconfig eth0 nameserver 192.168.0.1
D) Ensure that the dns service is listed in the hosts entry in the /etc/nsswitch.conf file Ensure that the dns service is listed in the hosts entry in the /etc/nsswitch.conf file
E) Run bind add nameserver 192.168.0.1 bind
Question
Which of the following configuration files are used by tcpwrapper?

A) /etc/tcpd.allow and etc/tcpd.deny /etc/tcpd.allow and etc/tcpd.deny
B) /etc/tcpwrapper.allow and /etc/tcpwrapper.deny /etc/tcpwrapper.allow /etc/tcpwrapper.deny
C) /etc/hosts.allow and /etc/hosts.deny /etc/hosts.allow /etc/hosts.deny
D) /etc/access.allow and /etc/access.deny /etc/access.allow /etc/access.deny
E) /etc/service.allow and /etc/service.deny /etc/service.allow /etc/service.deny
Question
On a Linux node with multiple active network interfaces, each having a default route to the Internet, which default route is preferred?

A) The default route with the highest metric value
B) The default route with the highest MTU value
C) The default route with the lowest TTL value
D) The default route with the highest TTL value
E) The default route with the lowest metric value
Question
Which of the following commands lists IPv4 addresses and MAC addresses of network nodes that the local system has seen on its directly connected IP networks?

A) arp
B) ifconfig
C) ipadm
D) iwlist
Question
Which single command simulates a failed device within a RAID 5 array?

A) mdadm --remove /dev/md0 /dev/sdd1
B) mdadm --zero-superblock /dev/sdf3
C) mdadm --force-fault /dev/md2 /dev/sde2
D) mdadm --fail /dev/md0 /dev/sdc1
E) mdadm /dev/md0 --offline /dev/sdc1
Question
A system has one hard disk and one CD writer which are both connected to SATA controllers. Which device represents the CD writer?

A) /dev/hdb
B) /dev/sdd
C) /dev/scd1
D) /dev/sr0
E) /dev/sr1
Question
On a Linux node with multiple active networks interfaces, each having a default route to the Internet, which default route is preferred?

A) The default route with the highest metric value
B) The default route with the highest MTU value
C) The default route with the lowest TTL value
D) The default route with the highest TTL value
E) The default route with the lowest metric value
Question
How is the source code for the main Linux kernel modules distributed?

A) It is included with the Linux kernel source code
B) The kernel modules are downloaded on demand as they are used during compilation
C) The kernel modules have their own release cycle and can be maintained separately from the Linux kernel source
D) It is provided as a separate download alongside the Linux kernel source code for the same version
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/60
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 7: LPIC-2 Exam 201
1
If the file containing the Linux kernel is deleted, what happens when the system boots?

A) The system starts normally since the bootloader copies the kernel to the master boot record of the hard disk
B) Instead of the kernel, the initramfs is loaded and instructed to mount the root filesystem and reinstall the kernel from the original package or from source
C) The bootloader mounts the root filesystem read-only and launches /bin/sh directly in order to allow the administrator to reinstall the kernel
D) Without a kernel system cannot boot and, depending on the bootloader, an error is displayed
Without a kernel system cannot boot and, depending on the bootloader, an error is displayed
2
How can the label root be added to the ext4 filesystem on /dev/sda1 ?

A) relabel /dev/sda1 root
B) tune2fs -L root /dev/sda1
C) echo 'root' > /proc/fs/sda1/label
D) labelfs --device /dev/sda1 root
tune2fs -L root /dev/sda1
3
Which of the following is a userspace application used to modify EFI entries on a Linux system?

A) efieditor
B) configefi
C) efimanager
D) efiboottmgr
E) efibootedit
efiboottmgr
4
Which of the following commands creates a Btrfs subvolume named volume in /mnt ?

A) btrfs subvolume add -n volume /mnt
B) btrfs create subvolume /mnt volume
C) btrfs-subvolume create /mnt/volume
D) btrfs subvolume new volume /mnt
E) btrfs subvolume create /mnt/volume
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
5
Fill in the blank. What command ensures that the file systems are written to disk after a lot of write operations? (Specify ONLY the command without any path or parameters.)
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
6
Which sub command to crypsetup shows information about an encrypted LUKS partition?

A) lu ksDump lu ksDump
B) luksInfo
C) luksDebug
D) luksLS
E) luksShow
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following is a CD-ROM filesystem standard?

A) OSI 9660
B) ISO 9660
C) SR0FS
D) ISO 8859
E) ROM-EO
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
8
Fill in the blank. What command will remove a physical volume from a volume group? (Specify ONLY the command without any path or parameters.)
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
9
What is the purpose of an initramfs during the Linux system start?

A) It loads required modules and starts sub sytems like LVM to make the root file system accessible to the kernel
B) It moves the kernel from normal system memory to initram memory to speed up kernel access
C) It copies the root file system's content to RAM to speed up the system and reduce writes to disk
D) It creates a ram disk to store volatile data for directories like /tmp to reduce writes to disk It creates a ram disk to store volatile data for directories like /tmp to reduce writes to disk
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
10
What is the purpose of a system mount unit?

A) It is used by the command systemd-mount and allows users to mount partitions to mount points of their choice It is used by the command systemd-mount and allows users to mount partitions to mount points of their choice
B) It is used only to mount network file systems to local mount points. It cannot be used for local media
C) It is created by the command systemd-fstab-generator to integrate entries from /etc/fstab into the system boot process It is created by the command systemd-fstab-generator to integrate entries from /etc/fstab into the system boot process
D) It is used by the command mount when using system to mount and unmount file systems mount when using system to mount and unmount file systems
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
11
What component of a system does smartd monitor?

A) CPU
B) RAM
C) Hard drives
D) Ethernet traffic
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
12
Due to extreme system use, a Linux system requires some additional swap space. To initialize 5 GB of additional swap space, which combination of commands should be used?

A) dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; mount /tmp/swapfile
B) dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; swapon /tmp/swapfile
C) dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; swapon /tmp/swapfile
D) touch -5G /tmp/swapfile; swapon /tmp/swapfile
E) mkswap /tmp/swapfile 512000; swapon /tmp/swapfile
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following init systems comes along with an own UEFI boot loader?

A) systemd
B) SysVinit
C) Upstart
D) OpenRC
E) launchd
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
14
Fill in the blank. Which directory contains system-specific systemd unit files? (Specify the full path to the directory.)
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
15
What effect does the -f option to the update-rc.d command have on files in the /etc/rcX.d/ and /etc/init.d/ directories?

A) It will force the removal of the symlinks in /etc/rcX.d/ even when the links are read only It will force the removal of the symlinks in even when the links are read only
B) It will remove both the symlinks in /etc/rcX.d/ and the init script in /etc/init.d/ It will remove both the symlinks in and the init script in
C) It will remove the init script in /etc/init.d/ and the symlinks in /etc/rcX.d/ and update the package information of installed files It will remove the init script in and the symlinks in and update the package information of installed files
D) It will force the removal of symlinks in /etc/rcX.d/ even if the corresponding init script still exists in /etc/init.d/ It will force the removal of symlinks in even if the corresponding init script still exists in
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
16
Fill in the blank. Which is the main configuration file for the SystemV init process? (Specify the full name of the file, including path .)
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
17
A Linux server running systemd booted to rescue.target for maintenance. Which commands are used to restore the server to its usual target?

A) telinit 0
B) systemctl default
C) sync
D) systemctl emergency
E) systemctl reboot
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
18
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?

A) lvcclone
B) lvcreate
C) lvm2
D) lvsnap
E) lvsnapshot
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
19
Which command is used to install a GRUB boot loader into the master boot record?

A) grub-install
B) grub-mkconfig
C) grub-install-mbr
D) grub-glue-mbr
E) grub-mbr-setup
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
20
Fill in the blank. What keyword is missing in the following line from /etc/fstab in order to grant the user fred write access to the files in the vfat file system on /dev/sdb1 : /dev/sdb1 /mnt/usbflash vfat defaults, _________=fred, umask=022, 0 0 (Specify ONLY the option name without any path or parameters.)
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
21
Fill in the blank. Which program lists information about files and network connections opened by processes? (Specify ONLY the command without any path or parameters.)
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following properties should be recorded in order to monitor the quality of a network link?

A) Bandwidth in both directions
B) Number of nodes using the link
C) Effective Latency
D) Number of IPv4 and IPv6 packets
E) Number of used TCP ports
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
23
A network client has an Ethernet interface (eth0) configured with an IP address in the subnet 192.168.0.0/24. This subnet has a router, with the IP address 192.168.0.1, that connects this subnet to the Internet. Which of the following commands can be used on the client to enable it to use the router as its default gateway?

A) route add default gw 192.168.0.1 eth0
B) ifconfig eth0 defaultroute 192.168.0.1
C) ip route add default via 192.168.0.1
D) echo defaultroute 192.168.0.1 >>/etc/resolv.conf
E) route add defaultgw=192.168.0.1 if=eth0
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
24
In the output of sar -b , what does tps stand for?

A) Terrabyte per second
B) Traffic per second
C) Transfers per second
D) Total data per second
E) Terrabit per second
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following configuration files are used by tcpwrapper?

A) /etc/tcpd.allow and etc/tcpd.deny /etc/tcpd.allow and etc/tcpd.deny
B) /etc/tcpwrapper.allow and /etc/tcpwrapper.deny /etc/tcpwrapper.allow /etc/tcpwrapper.deny
C) /etc/hosts.allow and /etc/hosts.deny /etc/hosts.allow /etc/hosts.deny
D) /etc/service.allow and /etc/service.deny /etc/service.allow /etc/service.deny
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
26
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?

A) configure
B) config.h.in
C) makefile
D) Makefile
E) Makefile.in
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
27
What is the minimum number of disks required in a fully redundant RAID5 array?

A) 1
B) 2
C) 3
D) 4
E) 5
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
28
In order to gather performance data with sar over a longer period of time, which command should be run periodically from cron?

A) sa1
B) sarmon
C) sarec
D) sadf
E) sarcron
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
29
Fill in the blank. The users of the local network complain that name resolution is not fast enough. Which command shows the time taken to resolve a DNS query? (Specify the command without path.)
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
30
Which commands below are useful to collect data about remote filesystem connections?

A) pidstat
B) nfsiostat
C) sadf
D) cifsiostat
E) fsiostat
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
31
In the following output of the command uptime, the load averages represent the system load averages for what time frames? 12:10:05 up 18 days, 19:00, 2 users, load average: 0.47, 24.71, 35.31

A) 1, 5 and 15 minutes
B) 1, 15 and 30 minutes
C) 5, 20 and 25 seconds
D) 15, 30 and 60 minutes
E) 15, 45 and 90 seconds
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
32
A regular user 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?

A) Install the binaries manually with suinstall Install the binaries manually with suinstall
B) Run make install with root privileges Run make install with root privileges
C) Do not run ./configure in order to maintain the default configuration for correct installation Do not run ./configure in order to maintain the default configuration for correct installation
D) Rerun ./configure with a --prefix option where the user has permissions to write Rerun with a --prefix option where the user has permissions to write
E) Run make install_local to install into /usr/local/ make install_local to install into /usr/local/
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
33
What action should be performed after increasing the size of a logical volume?

A) Run vgresize Run vgresize
B) Increase the size of the filesystem used for the logical volume
C) Run 1vresize Run 1vresize
D) Remount the logical volume
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
34
Which command reports information on memory usage, paging and block input/output?

A) free
B) memshow
C) lsof
D) pidof
E) vmstat
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
35
The following command has just been run successfully: Cd /opt; tar xvf /dev/nst0; What will happen if the command sequence is run again?

A) An error saying that there is no tape present is generated because the tape has been ejected after being used
B) The contents of /opt will be restored again The contents of /opt will be restored again
C) The entire contents of /opt will be replaced with the contents of the next file on the tape The entire contents of will be replaced with the contents of the next file on the tape
D) The contents of /opt will have additional content added from the next file on the tape /opt will have additional content added from the next file on the tape
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
36
Which of the following commands erases the contents of the /dev/sdb3 partition?

A) rm /dev/sdb3
B) dd if=/dev/zero of=/dev/sdb3
C) dd of=/dev/zero if=/dev/sdb3
D) umount /dev/sdb3
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
37
A web application server contains 64GB of RAM and two swap partitions on normal hard disk drives, each with a size of 64 GB. Within the last month, the average number of user sessions on this server has grown by 20 percent. At the same time, the average usage of RAM increased from 65 to 75 percent, while the swap space is almost not used at all. It is expected that the number of user sessions will continue to increase by about 15 to 20 percent each month. Which of the following reactions would be appropriate in response to these observations?

A) Delay any hardware upgrade until there is a significant consumption of swap space to ensure an efficient usage of the available hardware
B) Create a RAID 1 device on the two swap partitions to avoid data loss in case swap space has to be used in the future
C) Consider the installation of an additional application server to distribute the load if the expected growth continues over several months
D) Move the web application's scripts and content a ram disk in order to ensure fast access and to avoid the need for swap space
E) Update the hardware to increase the amount of available RAM to avoid using swap space
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
38
In which directory tree are files modified when changing kernel parameters using the command sysctl ?

A) /sys/kernel/
B) /proc/kernel/
C) /proc/sys/
D) /lib/sys/
E) /sys/proc/
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
39
Which of the filter keywords below could be used in the following command: tcpdump -i eth0 ____________ 203.0.113.8

A) host
B) ip
C) src
D) dst
E) ipv6
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
40
Which of the following commands restores only those files containing lpi in their name from the archive lpifiles.tar.gz ?

A) tar xvzf lpifiles.tar.gz --wildcards '*lpi*'
B) tar xvzwf lpifiles.tar.gz '*lpi*'
C) tar -xvfz lpifiles.tar.gz --deep '*lpi*'
D) tar -xvzf lpifiles.tar.gz --subdirs '*lpi*'
E) tar xvzf lpifiles.tar.gz --globbing '*lpi*'
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
41
After the downloading patch-4.6.4.xz from http://kernel.org, what are the next steps to prepare the build of a version 4.6.4 Linux kernel?

A) Uncompress the file and move the resulting directory to /usr/src/linux Uncompress the file and move the resulting directory to /usr/src/linux
B) Apply the patch file to the kernel source directory containing kernel version 4.6.0
C) Apply the patch file to the kernel source directory containing kernel version 4.6.3
D) Uncompress the file using xz to get the uncompressed patch file Uncompress the file using xz to get the uncompressed patch file
E) Use patch to apply the uncompressed patch file to the source directory of any previous kernel version Use patch to apply the uncompressed patch file to the source directory of any previous kernel version
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
42
Fill in the blank. After installation of a self-compiled kernel, modules that need to be loaded cannot be found. What make target was likely missed while installing the kernel? (Specify ONLY the make target without any command or parameters.)
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
43
On a server running the 3.4.50-11 Linux kernel, which file in the /boot directory contains the kernel configuration parameters?

A) config-linux-3.4.50-11
B) config-3.4.50-11
C) system-3.4.50-11
D) vmlinuz-3.4.50-11
E) rc.config-3.4.50-11
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
44
What is the purpose of the command udevadm monitor?

A) It listens to kernel events produced by a udev rule and prints information to the console
B) It monitors the /dev/ directory for new devices
C) It monitors the udev process and prints performance statistics to the console
D) It communicates with D-Bus to setup new devices
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
45
Which of the following commands displays the physical path of the kernel module named dummy ?

A) modprobe -i dummy
B) modinfo -n dummy
C) modpath -v dummy
D) depmod -n dummy
E) modshow -p dummy
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
46
Which of the following commands shows capabilities and usable frequencies for the wireless interface wlan0 ?

A) iw phy pyh0 info
B) iw dev wlan0 info
C) iw dev wlan0 show
D) iw phy wlan0 show
E) iw phy0 show
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
47
Which of the following commands adds a static IPv6 address to the network interface eth0?

A) ip add addr 2001:db8::1337/64 dev eth0
B) ip -6 add addr 2001:db8::1337/64 dev eth0
C) ip addr add 2001:db8::1337/64 dev eth0
D) ip -6 addr add new 2001:db8::1337/64 dev eth0
E) ip addr add -6 2001:db8::1337/64 dev eth0
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
48
The following is an excerpt from the output of tcpdump -nli eth1 : <strong>The following is an excerpt from the output of tcpdump -nli eth1 :   Which network service or protocol was used?</strong> A) FTP B) HTTP C) SSH D) DNS E) DHCP Which network service or protocol was used?

A) FTP
B) HTTP
C) SSH
D) DNS
E) DHCP
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
49
Which of the following parameters instructs the kernel at boot time to use only one of the available processors?

A) maxcpus=1
B) usecpus=1
C) smpcpus=1
D) vcpumx=1
E) vmxcpus=1
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
50
Which of the following commands by default provides the PIDs of the processes sorted by which are using the most CPU cycles on the Linux system?

A) top
B) uptime
C) ps aux
D) vmstat
E) freemem
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
51
What information is found in the following excerpt from the file /proc/mdstat ? <strong>What information is found in the following excerpt from the file /proc/mdstat ?  </strong> A) One of the disks in /dev/md0 has failed and a spare disk is used to recreate full redundancy B) The spare disk /dev/sda1 is used to restore full redundancy after the current recovery C) The information [UU_] means, that the raid is missing one disk and is not fully redundant D) The device is using version 1.2 metadata to allow LILO and GRUB Legacy to use /dev/md0 as the boot partition. This would not have been necessary with GRUB2 E) The information [3/2] means that 3 RAID disks belong to the array and 2 disks are spare. Together they equal the number of available disks

A) One of the disks in /dev/md0 has failed and a spare disk is used to recreate full redundancy
B) The spare disk /dev/sda1 is used to restore full redundancy after the current recovery
C) The information [UU_] means, that the raid is missing one disk and is not fully redundant
D) The device is using version 1.2 metadata to allow LILO and GRUB Legacy to use /dev/md0 as the boot partition. This would not have been necessary with GRUB2
E) The information [3/2] means that 3 RAID disks belong to the array and 2 disks are spare. Together they equal the number of available disks
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
52
After manually compiling and installing a new kernel, what has to be done regarding the initramfs?

A) To initramfs is independent of the kernel and should not be modified unless the hardware configuration of the machine has changed
B) Since the initramfs contains kernel modules, a new initramfs must be built for the new kernel
C) During the compilation of the Linux kernel, a new initramfs is built automatically. The new initramfs only needs to be installed
D) The system should be restarted since the initramfs reconfigures itself for the new kernel during the startup of the system
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
53
What should be done to ensure a client machine uses the recursive nameserver running on the IP address 192.168.0.1?

A) Add nameserver 192.168.0.1 to /etc/resolv.conf Add nameserver 192.168.0.1 to /etc/resolv.conf
B) Run route add nameserver 192.168.0.1 Run route add
C) Run ifconfig eth0 nameserver 192.168.0.1 ifconfig eth0 nameserver 192.168.0.1
D) Ensure that the dns service is listed in the hosts entry in the /etc/nsswitch.conf file Ensure that the dns service is listed in the hosts entry in the /etc/nsswitch.conf file
E) Run bind add nameserver 192.168.0.1 bind
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
54
Which of the following configuration files are used by tcpwrapper?

A) /etc/tcpd.allow and etc/tcpd.deny /etc/tcpd.allow and etc/tcpd.deny
B) /etc/tcpwrapper.allow and /etc/tcpwrapper.deny /etc/tcpwrapper.allow /etc/tcpwrapper.deny
C) /etc/hosts.allow and /etc/hosts.deny /etc/hosts.allow /etc/hosts.deny
D) /etc/access.allow and /etc/access.deny /etc/access.allow /etc/access.deny
E) /etc/service.allow and /etc/service.deny /etc/service.allow /etc/service.deny
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
55
On a Linux node with multiple active network interfaces, each having a default route to the Internet, which default route is preferred?

A) The default route with the highest metric value
B) The default route with the highest MTU value
C) The default route with the lowest TTL value
D) The default route with the highest TTL value
E) The default route with the lowest metric value
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
56
Which of the following commands lists IPv4 addresses and MAC addresses of network nodes that the local system has seen on its directly connected IP networks?

A) arp
B) ifconfig
C) ipadm
D) iwlist
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
57
Which single command simulates a failed device within a RAID 5 array?

A) mdadm --remove /dev/md0 /dev/sdd1
B) mdadm --zero-superblock /dev/sdf3
C) mdadm --force-fault /dev/md2 /dev/sde2
D) mdadm --fail /dev/md0 /dev/sdc1
E) mdadm /dev/md0 --offline /dev/sdc1
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
58
A system has one hard disk and one CD writer which are both connected to SATA controllers. Which device represents the CD writer?

A) /dev/hdb
B) /dev/sdd
C) /dev/scd1
D) /dev/sr0
E) /dev/sr1
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
59
On a Linux node with multiple active networks interfaces, each having a default route to the Internet, which default route is preferred?

A) The default route with the highest metric value
B) The default route with the highest MTU value
C) The default route with the lowest TTL value
D) The default route with the highest TTL value
E) The default route with the lowest metric value
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
60
How is the source code for the main Linux kernel modules distributed?

A) It is included with the Linux kernel source code
B) The kernel modules are downloaded on demand as they are used during compilation
C) The kernel modules have their own release cycle and can be maintained separately from the Linux kernel source
D) It is provided as a separate download alongside the Linux kernel source code for the same version
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 60 flashcards in this deck.