@Todo: Add more Questions to the Exam 101-500
@Todo: Study materials: https://learning.lpi.org/en/learning-materials/101-500/

1. What is true regarding the configuration of yum? (Choose two.)

 
 
 
 

2. When planning a partition scheme, which of the following directories could be considered for
separate partitions? (Choose three.)

 
 
 
 
 

3. The dpkg-____ command will ask configuration questions for a specified package, just as if the
package were being installed for the first time.

 
 
 
 

4. What is true regarding UEFI firmware? (Choose two.)

 
 
 
 
 

5. What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)

 
 
 
 
 

6. Which of the following options is used in a GRUB Legacy configuration file to define the
amount of time that the GRUB menu will be shown to the user?

 
 
 
 

7. Which of the following statements is correct regarding the command foo 1> bar?

 
 
 
 
 

8. Which of the following is very important when installing from source code (Check TWO that
apply)?

 
 
 
 
 

9. To prevent a command run as root from sending both standard out (stdout) and standard error
(stderr) to any terminal or other file or device, which of the following strings should be appended to
the command?

 
 
 
 
 

10. Which of the following commands instructs SysVinit to reload its configuration file?

 
 
 
 
 

11. What does the command mount -a do?

 
 
 
 

12. Which command will show you the contents of a gzip compressed tar archive?

 
 
 
 

13. As root you have navigated to directory /B. You wish to move all of the files and directories
from directory /A to directory /B. Which of the following options would be the most appropriate
command line to execute this task?

 
 
 
 
 

14. When piping the output of find to the xargs command, what option to find is useful if the
filenames have spaces in them?

 
 
 
 

15. Which of the following commands can be used to download the RPM package kernel without
installing it?

 
 
 
 

16. Pressing the Ctrl-C combination on the keyboard while a command is executing in the
foreground sends which of following signal codes?

 
 
 
 
 

17. What option, when passed to the yum command, will update the entire system? (Specify
ONLY the option name with no additional parameters)

 
 
 
 

18. Which signal is sent by the kill command by default?

 
 
 
 

19. What is the process ID number of the init process on a SysV init based system?

 
 
 
 
 

20. Which command will print out the attributes of the file foobar?

 
 
 
 

21. Which of the following commands will print important system information such as the kernel
version and machine hardware architecture?

 
 
 
 
 

22. Which of the following are valid stream redirection operators within Bash? (Choose two.)

 
 
 
 
 

23. Given the following output: prompt> myapp [1]+ Stopped myapp prompt> Which of the
following commands will resume executing the stopped process and make it the current job?

 
 
 
 
 

24. What command will generate a list of user names from /etc/passwd along with their login
shell?

 
 
 
 

25. Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO
correct answers.)

 
 
 
 
 

26. You want to examine the changelog for the installed package postfix. Which command will
display the changelog?

 
 
 
 
 

27. Which of the following commands installs all packages with a name ending with the string
foo?

 
 
 
 
 

28. You have just upgraded your PC to a 60 gigabyte IDE drive. While partitioning the drive, you
notice that only 32 gigabytes are available. Which of the following will most likely allow you to use
the entire drive?

 
 
 
 
 

29. Which of the following commands replaces each occurrence of ‘bob’ in the file letter with
‘Bob’ and writes the result to the file newletter?

 
 
 
 
 

30. Which of the following commands is run last during boot on a system with quotas enabled?

 
 
 
 

31. Which utility would be used to change how often a filesystem check is performed on an ext2
filesystem without losing any data stored on that filesystem?

 
 
 
 
 

32. What information can the lspci command display about the system hardware? (Choose
THREE correct answers.)

 
 
 
 
 

33. You want to the command foo to take its input from the file foobar and send its output to the
program bar. Which of the following command lines will do this?

 
 
 
 
 

34. SIMULATION
Which file in /proc describes the IRQs that are used by various kernel drivers? (Specify the file name
only without any path.)

 
 
 
 

35. A faulty kernel module is causing issues with a network interface card. Which of the following
actions ensures that this module is not loaded automatically when the system boots?

 
 
 
 
 

36. Which type of file system is created by mkfs when it is executed with the block device name only and without any additional parameters?

 
 
 
 
 

37. Which umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group and are not accessible at all for everyone else?

 
 
 
 
 

38. Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?

 
 
 
 
 

39. Which is the default percentage of reserved space for the root user on new ext4 filesystems?

 
 
 
 
 

40. Which of the following is true when a file system, which is neither listed in /etc/fstab nor known to system, is mounted manually?

 
 
 
 
 

41. FILL BLANK –
Which program updates the database that is used by the locate command? (Specify ONLY the command without any path or parameters).

 
 

42. Which of the following is true? The initramfs normally contains ..

 
 
 
 

43. Which of the following will print your current directory position on the shell?

 
 
 
 
 
 

44. When considering the use of hard links, what are valid reasons not to use hard links?

 
 
 
 
 

45. Which daemon handles power management events on a Linux system?

 
 
 
 
 

46. A faulty kernel module is causing issues with a network interface card. Which of the following actions ensures that this module is not loaded automatically when the system boots?

 
 
 
 
 

47. A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?

 
 
 
 
 

48. When is the content of the kernel ring buffer reset? (Choose two.)

 
 
 
 
 

49.

Which of the following files exist in a standard GRUB 2 installation? (Choose two.)

 
 
 
 
 

50. Which partition type code should be used for a swap partition?

 
 
 
 
 

51. How do you create an LVM2 volume group?

 
 
 
 
 

52. Which of the following are common compression tools on Linux?

 
 
 
 
 

53. Which boot loader probably uses the following syntax?
title Gentoo 5.1.0
linux /vmlinuz-5.1.0-gentoo
initrd /initramfs-genkernel-x86_64-5.1.0-gentoo
options
domdadm dolvm crypt_root=/dev/md/gentoo:root
real_root=/dev/mapper/crypt-root root=/dev/mapper/crypt-root
rootfstype=ext4 root_trim=yes

 
 
 
 
 

54. What does the command mount –bind do?

 
 
 
 
 

55. Consider the following directory:
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)

 
 
 
 
 

56. When is the content of the kernel ring buffer reset? (Choose two.)

 
 
 
 
 

57. What is contained on the EFI System Partition?

 
 
 
 
 

58. Which of the following directories on a 64 bit Linux system typically contain shared libraries? (Choose two.)

 
 
 
 
 

59. What is the first program the Linux kernel starts at boot time when using System V init?

 
 
 
 
 

60. In which file the default runlevel for a SysVInit system is set?

 
 
 
 
 

61. Which of the following commands belong to the Debian package management system?

 
 
 
 
 
 
 

62. How do you unload a Linux module from the running Kernel?

 
 
 
 

63. FILL BLANK –
Which command displays the current disk space usage for all mounted file systems? (Specify ONLY the command without any path or parameters.)

 
 

64. Which chown command changes the ownership to dave and the group to staff on a file named data.txt?

 
 
 
 
 

65. What is the first program the Linux kernel starts at boot time when using System V init?

 
 
 
 
 

66. Which of the following files exist in a standard GRUB 2 installation? (Choose two.)

 
 
 
 
 

67. Which of the following properties of a Linux system should be changed when a virtual machine is cloned? (Choose two.)

 
 
 
 
 

68. Which of the following commands restarts a Linux system on a SysV system immediately?

 
 
 
 
 
 

69. A regex with “a*” would match all words starting with an a?

 
 

70. How do you search for modified things in the last 1 minute in the current directory?

 
 
 
 
 
 

71. In order to display all currently mounted filesystems, which of the following commands could be used? (Choose two.)

 
 
 
 
 

72. What is the process ID number of the init process on a System V init based system?

 
 
 
 
 

73. What is true regarding UEFI firmware? (Choose two.)

 
 
 
 
 

74. Which of the following commands installs all packages with a name ending with the string foo?

 
 
 
 
 

75. How do you send a broadcast message to all logged in users? (Without files)

 
 
 
 
 

76. What would be the best way to print out the MBR of the first mass storage device?

 
 
 
 
 

77. Which of the following prints to stdout and writes to a file simultaneously?

 
 
 
 

78. In compliance with the FHS, in which of the directories are man pages found?

 
 
 
 
 

79. Which of the following statements are true about the boot sequence of a PC using a BIOS? (Choose two.)

 
 
 
 
 

80. What is contained on the EFI System Partition?

 
 
 
 
 

81. Which tools can be used to change the nice value of a running process?

 
 
 
 
 

82. bg is an built in bash command? E.g. no regular executable.

 
 

83. You can add -r to the move (mv) command?

 
 

84. Consider the following output from the command ls -i:

How would a new file named c.txt be created with the same inode number as a.txt (Inode 525385)?

 
 
 
 
 

85. Which of the following properties of a Linux system should be changed when a virtual machine is cloned? (Choose two.)

 
 
 
 
 

86. Which of the following commands installs GRUB 2 into the master boot record on the third hard disk?

 
 
 
 
 

87. In which directory is the compiled Linux kernel normally located?

 
 
 
 
 

88. Which grep parameter negates the pattern, e.g. showing all lines NOT containing it?

 
 
 
 
 

89. A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?

 
 
 
 
 

90. Which command lists the files in an installed RPM packages

 
 
 
 
 

91. Which of the following are Linux init systems?

 
 
 
 
 

92. In which file is the users bash history stored?

 
 
 
 
 

93. Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?

 
 
 
 
 

94. How do you enable an existing swap partition?

 
 
 
 
 

95. Which file ending do shared libraries have on Linux?

 
 
 
 
 

96. Which parameter allows you to filter for devices (PCI-Bus) with lspci?

 
 
 
 
 

97. Which file probably contains the following content?
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe

 
 
 
 
 

98. What kind of Kernel is the Linux one?

 
 
 
 
 

99. Which regex operator matches the beginning of a line?

 
 
 
 
 

100. What would be the output of the following echo command?
$ EXAM="LPIC 101"
$ echo 'Exam: "$EXAM"'

 
 
 
 
 

101. The dot “.” in a regex matches a single character?

 
 

102. How many partitions does GPT support?

 
 
 
 
 

103. Which of the following are valid nice values?

 
 
 
 
 
 
 

104. Which of the following commands allows you to change the nice value of a running command?

 
 
 
 
 

105. Which of the following would create a backup of your user home directory?

 
 
 
 
 

106. Which command shows you printable character sequences in an Linux executable?

 
 
 
 
 

107. How would you extend the list of directories, where the shell is looking for executable files, with your users “~/bin” folder?

 
 
 
 
 
 

108. Which section number has the manual for the /etc/fstab file?

 
 
 
 
 

109. How do you install Grub into the MBR of the first mass storage device?

 
 
 
 
 

110. Which of the following is true for systemd-journald?

 
 
 
 
 

111. Which partition type should an UEFI boot partition have?

 
 
 
 
 

112. How many primary partitions can you have with an MBR partitioning scheme?

 
 
 
 
 

113. Which command numbers the lines of a file? (Not the file itself)

 
 
 
 
 

114. Which of the following files (if existing) are normally loaded during the startup of the Bourne-Again Shell (bash)?

 
 
 
 
 

115. Where is the partition table located on a mass storage device with an MBR partition scheme?

 
 
 
 
 

116. Which folder generally would contain the apache2 / httpd executable on Linux?

 
 
 
 
 

117. How do you delete an Variable on the bash? (Command only)

 
 
 
 
 

118.

How do you start the apache2 service with systemd without a reboot?

 
 
 
 

119.

Which kill signal is send by default by the kill command? (If no other supplied)

 
 
 
 
 

120.

What is the maximum addressable storage space of a MBR partitioned hard disk with a 512 byte sector size?

 
 
 
 
 

121.

How would you partition a mass storage device with an MBR (dos) partition scheme?

 
 
 
 
 

122.

Which commands prints the Linux kernel message buffer?

 
 
 
 
 

123.

How can you list all installed packages on an Debian system?

 
 
 
 
 

124.

Which of the following are Linux filesystems and are supported directly by the Kernel?

 
 
 
 
 
 

125.

How would you start the editing mode after the current position of your cursor in vi?

 
 
 
 
 

126.

Which of the following are Linux bootloaders?

 
 
 
 
 

127.

Which of the following are bash programs to manage jobs?

 
 
 
 
 
 

128.

Which of the following redirects the standard and error output to a file?

 
 
 
 
 

129. How do you power down a system in 5 minutes?

 
 
 
 
 

130. How can you delete an package including it’s configuration?

 
 
 
 
 

131. Which command allows you to reverse sort the lines of a text file?

 
 
 
 
 
 

132. Which of the following does touch not do?

 
 
 
 
 
 

133. How do you obtain the ip address of an network adapter in Linux?

 
 
 
 
 

134. How can you get more information, like the maintainer, about an apt package on Debian?