LPIC-1 Test Examen

Preguntas de repaso para la certificación LPIC-1.

1. Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

¿Dónde viene esto explicado?

2. During a system boot cycle, what program is executed after the BIOS completes its tasks? Seleccione una o más de una:

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

¿Dónde viene esto?

4. What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init? Seleccione una o más de una:

5. What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)

6. Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)

7. Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)

8. Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)

9. Which of the following commands will write a message to the terminals of all logged in users?

10. Which of the following information is stored within the BIOS? (Choose TWO correct answers.)

11. Which of the following kernel parameters instructs the kernel to suppress most boot messages?

12. Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

13. Which of the following statements is correct when talking about /proc/?

14. Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)

15. Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination? Seleccione una o más de una:

¿Dónde viene esto explicado?

16. After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect? Seleccione una o más de una:

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

18. When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)

¿Dónde viene esto explicado?

19. Which file should be edited to select the network locations from which Debian installation package files are loaded?

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

¿Dónde viene esto? ¿Realmente está bien?

21. Which of the following commands is used to update the list of available packages when using dpkg based package management? Seleccione una o más de una:

22.Which of the following commands lists all currently installed packages when using RPM package management?

23. Which of the following commands lists the dependencies of a given dpkg package?

¿Dónde viene esto explicado?

24. Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it? Seleccione una o más de una:

¿Dónde viene esto explicado?

25. Which of the following commands updates the linker cache of shared libraries? Seleccione una o más de una:

26. Which of the following environment variables overrides or extends the list of directories holding shared libraries? Seleccione una o más de una:

27. Which of the following is correct when talking about mount points?

28. Which RPM command will output the name of the package which supplied the file /etc/exports? Seleccione una o más de una:

29. When removing a package, which of the following dpkg options will completely remove the files including configuration files? Seleccione una o más de una:

30. 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? Seleccione una o más de una:

31. In compliance with the FHS, in which of the directories are man pages found? Seleccione una o más de una:

32. In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows? Seleccione una o más de una:

33. Regarding the command: nice -5 /usr/bin/prog, Which of the following statements is correct? Seleccione una o más de una:

34. What command will generate a list of user names from /etc/passwd along with their login shell? Seleccione una o más de una:

35. What is the default nice level when a process is started using the nice command? Seleccione una o más de una:

¿Dónde viene esto explicado?

36. What is the output of the following command? echo “Hello World” | tr -d aieou. Seleccione una o más de una:

¿Dónde viene esto explicado?

37. When running the command sed -e “s/a/b/” /tmp/file >/tmp/file While /tmp/file contains data, why is /tmp/file empty afterwards? Seleccione una o más de una:

¿Dónde viene esto explicado?

38. When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process? Seleccione una o más de una:

¿Dónde viene esto explicado?

39. Which of the following commands displays the contents of a gzip compressed tar archive? Seleccione una o más de una:

¿Dónde viene esto explicado?

40. Which of the following commands is used to change options and positional parameters for a running Bash? Seleccione una o más de una:

¿Dónde viene esto explicado?

41. Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)

¿Dónde viene esto explicado?

42. Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log? Seleccione una o más de una:

¿Dónde viene esto explicado?

43. Which of the following shell redirections will write standard output and standard error output to a file named filename? Seleccione una o más de una:

¿Dónde viene esto explicado?

44. Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard? Seleccione una o más de una:

¿Dónde viene esto explicado?

45. Which of the following statements is correct regarding the command foo 1> bar? Seleccione una o más de una:

46. After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.) Seleccione una o más de una:

47. Creating a hard link to an ordinary file returns an error. What could be the reason for this? Seleccione una:

48. What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command? Seleccione una:

49. What does the command mount -a do?

50. What does the command mount -a do?

¿Dónde viene esto explicado?

51. What is the purpose of the Filesystem Hierarchy Standard?

52. Which of the following commands can be used to display the inode number of a given file?

53. Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

54. Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)

¿Dónde viene esto explicado?

55. Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?

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

57. Which of the following commands shows the definition of a given shell command?

58. Which of the following commands will change the quota for a specific user?

Se supone que el tema de cuotas no entra en el examen actual de esta certificación. Fue eliminado del temario.

59. Which of the following file permissions belong to a symbolic link?

60. 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?

61. A backup software heavily uses hard links between files which have not been changed in between two backup runs. Which benefits are realized due to these hard links? (Choose TWO correct answers)

¿Dónde viene esto explicado?

62. A yum repository can declare sets of related packages. which yum installs all packages belonging to the group admintools?

63. After a power outage, the XFS file system of /dev/sda3 is inconsistent. How can the existing file system errors be fixed?

¿Dónde viene esto explicado?

64. Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers)

65. The installation of a local Debian package failed due to unsatisfied dependencies. Which of the following comands installs missing dependencies and completes the interrupted package installation?

66. What are the main diferences between GPT and MBR partition tables regarding maximum number and size of partitions? ( Choose TWO correct answers)

67. What is the purpose of the ldd command?

68. Which of the following commands are valid in the GRUB 2 configuration file? ( Choose TWO correct answers)

¿Dónde viene esto explicado?

69. Which of the following commands installs the GRUB boot files into the currenty active filesystem and the boot loader into the first partition of the first disk?

70. Which of the following commands sets the SetUID permission on the executable /bin/foo?

71. Which of the following files are found in the /boot/ filesystem?(Choose TWO correct answers)

¿Dónde viene esto explicado?

72. Which of the following Linux filesystems preallocate a fixed number of inodes when creating a new filesystem instead of generating them as needed? (Choose TWO correct answers)

73. Which of the following setting for umask ensures that new files have the default permissions -rw-r-----?

74. Which of the following settings for umask ensures that new files have the default permissions -rwr-----?

75. Which of the following statements are correct when comparing linux containers with traditional virtual machines (e.g. LXC vs KVM)? (Choose THREE correct answers)

¿Dónde viene esto explicado?

76. What directory contains configuration files for additional yum repositories? (Specify the full path to the directory.)

77. Which file from the /proc/ filesystem contains a list of all currently mounted devices? (specify the full name of the file, including path)

78. How many fields are in a syntactically correct line of /etc/fstab?

79. If the gzip compressed tar archive texts.tgz contains the files a.txt and b.txt, which files will be present in the current directory after running gunzip texts.tgz

80. In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?

81. In Bash, inserting 1>&2 after a command redirects…

82. Running chmod 640 files.txt as a regular user doesn't update files.txt's permissions. what might be a reason why chmod cannot modify permissions? (Choose TWO correct answers)

83. What is the effect of the -v option for the grep command?

84. When in Normal mode in vi, which character can be used to begin a reverse search of the text?

85. Which of the following commands determines a file's format by using a definition database file which contains information about all common file types?

86. Which of the following commands can be used to display the inode number of a given file? (Choose TWO correct answers)

87. Which of the following commands creates or in case it already exists, overwrites a file called data with the output of ls?

88. Which of the following commands display the IDs of all processes owned by root? (Choose TWO correct answers)

¿Dónde viene esto explicado?

89. Which of the following commands reads a file and creates separate chunks of a given size from the file's contents?

90. Which of the following commands generates a list of user names from /etc/passwd along with their login shell?

91. Which of the following commands print the current working directory when using a Bash shell? (Choose TWO correct answers)

¿Dónde viene esto explicado?

92. Which of the following commands shows how the shell handles a specific command?

93. Which of the following properties of an existing file changes when a hard link pointing to that file is created?

94. Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers)

95. Which of the following tools can show complete path of an executable file that the current shell would execute when starting a command without specifying its complete path? (Choose TWO correct answers)

96. Following the Filesystem Hierarchy Standard (FHS), where should binares that have been compiled by the system administrator be placed in order to be made available to all users on the system? (Specify the full path to the directory.)

¿Valdría también /bin?

97. Which command displays a list of all backgroud tasks running in the current shell? (Specify ONLY the command without any path or parameters)

98. A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

99. Given the following two symbolic links in a System V init configuration: /etc/rc1.d/K01apache2 and /etc/rc2.d/S02apache2, When are the scripts executed that are referenced by these links? (Choose TWO correct answers)

100. What is the correct way to set the default systemd boot target to multi-user?

101. What is the output when the regular espression s/[ABC][abc]/xx/ is applied to the following string? ABCabc

¿Dónde viene esto explicado?

102. What is the purpose of the xargs command?

¿Dónde viene esto explicado?

103. When booting from the hard disk, a computer successfully loads the linux kernel and initramfs but hangs during the subsequent startup tasks. The system is booted using a linux based rescue CD to investigate the problem. Which of the following methods helps to identify the root cause of the problem?

¿Dónde viene esto explicado?

104. Where is the bootloader stored on the hard disk of a UEFI system?

¿Dónde viene esto explicado?

105. Which of the following commands can perform searches on file contents using regular expressions?

106. Which of the following commands loads a kernel module along with any required dependency modules?

107. Which of the following commands outputs “test” to the shell?

cat  ! < EOT
test
EOT
cat  &<EOT
test
EOT
cat < | EOT
test
EOT
cat < ! EOT
test
EOT

(Solución)

cat  << EOT
test
EOT

¿Dónde viene esto explicado?

108. Which of the following displays the manual page command from section 1?

109. Which of the following signals is sent to a process when the key combination Ctrl+Z is pressed on the keyboard?

¿Dónde viene esto explicado?

110. Which of the following statements are correct about the initial RAM disk involved in the boot process of Linux? ( Choose TWO correct answers)

111. Which of the following statements is correct for a command ending with an & character?

112. Which command used to change the priority of an already running process? (Specify ONLY the command without any path or parameters?

113. Which System V init configuration file is commonly used to set the default runlevel? ( Specify the full name of the file, including path)

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

¿Dónde viene esto explicado?

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

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

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

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

¿Dónde viene esto explicado?

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

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

¿Dónde viene esto explicado?

121. 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?

122. 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?

¿Dónde viene esto explicado?

123. 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?

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

¿Dónde viene esto explicado?

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

¿Dónde viene esto explicado?

126. What does the command mount --bind do?

127. Consider the following output from the command ls –i:

525385 -rw-rw-r-- 2 1000 1000 0 Feb 12 19:44 a.txt
526385 lrwxrwxrwx 1 1000 1000 5 Feb 12 19:44 b.txt -> a.txt

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

128. 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.)

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

130. Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

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

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

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

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

135. Which of the following apt-get subcommands installs the newest versions of all currently installed packages?

136. Which command uninstalls a package but keeps its configuration files in case the package is re-installed?

137. Which of the following commands lists the dependencies of the RPM package file foo.rpm?

138. What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

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

140. Which of the following vi commands deletes two lines, the current and the following line?

141. The command dbmaint & was used to run dbmaint in the background. However, dbmaint is terminated after logging out of the system. Which alternative dbmaint invocation lets dbmaint continue to run even when the user running the program logs out?

142. From a Bash shell, which of the following commands directly execute the instructions from the file /usr/local/bin/runme.sh without starting a subshell? (Choose two.)

¿Dónde viene esto explicado?

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

¿Dónde viene esto explicado?

144. What is contained on the EFI System Partition?

¿Dónde viene esto explicado?

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

¿Dónde viene esto explicado?

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

¿Dónde viene esto explicado?

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

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

¿Dónde viene esto explicado?

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

150. When redirecting the output of find to the xargs command, what option to find is useful if the filenames contain spaces?

¿Dónde viene esto explicado?

151. Which of the following commands can be used to determine how long the system has been running? (Choose two.)

152. What is true regarding the command ls > files if files does not exist?

153. Which of the following files, located in a user’s home directory, contains the Bash history?

154. Which wildcards will match the following filenames? (Choose two.)

ttyS0
ttyS1
ttyS2

155. Which of the following commands redirects the output of ls to standard error?

156. Which of the following commands displays the contents of a gzip compressed tar archive?

157. Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

158. Which of the following regular expressions represents a single upper-case letter?

159. Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

160. Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and 8:59 am?

161. Which of the following commands changes all CR-LF line breaks in the text file userlist.txt to Linux standard LF line breaks and stores the result in newlist.txt?

¿Dónde viene esto explicado?

162. Given the following input stream:

txt1.txt
atxt.txt
txtB.txt

Which of the following regular expressions turns this input stream into the following output stream?

txt1.bak.txt
atxt.bak.txt
txtB.bak.txt

163. Which command must be entered before exiting vi to save the current file as filea.txt?

164. Which of the following commands displays the output of the foo command on the screen and also writes it to a file called /tmp/foodata?

165. What output will be displayed when the user fred executes the following command? echo 'fred $USER'

166. Which of the following commands displays the path to the executable file that would be executed when the command foo is invoked?

167. Which program runs a command in specific intervals and refreshes the display of the program’s output?(Specify ONLY the command without any path or parameters.)

168. Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters.)

169. How can the existing environment variable FOOBAR be suppressed for the execution of the script ./myscript only?

¿Dónde viene esto?

170. What output will the following command produce? seq 1 5 20

¿Dónde viene esto?

171. When the command echo $ outputs 1, which of the following statements is true?

172. When the command echo $$ outputs 12942, what is the meaning of 12942?

¿Dónde viene esto?

173. Which of the following commands lists all defined variables and functions within Bash?

¿Dónde viene esto?

174. Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

175. Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?

Esta pregunta no debería estar en esta certificación

176. By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)

177. What command displays all aliases defined in the current shell? (Specify the command without any path information)

178. What word is missing from the following SQL statement? XXXXXX count(*) from tablename

Esta pregunta no debería estar en esta certificación

179. For accessibility assistance, which of the following programs is an on-screen keyboard?

¿Dónde viene esto?

180. How is a display manager started?

¿Dónde viene esto?

181. The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?

182. What is the purpose of a screen reader?

183. Which file used by XDM specifies the default wallpaper?

¿Dónde viene esto?

184. Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)

185. Which of the following commands shows the current color depth of the X Server?

¿Dónde viene esto?

186. What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.)

187. What is the name of the simple graphical login manager that comes with a vanilla X11 installation? (Specify ONLY the command without any path or parameters.)

¿Dónde viene esto?

188. Which command can be used to investigate the properties for a particular window in X by clicking that window? (Specify ONLY the command without any path or parameters.)

¿Dónde viene esto?

189. What is the purpose of the iconv command?

190. What is true about the file /etc/localtime?

/usr/share/zoneinfo/Europe/Berlin. (Solución)

191. What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)

192. Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)

193. Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)

194. Each entry in a crontab must end with what character?

195. To prevent a specific user from scheduling tasks with at, what should the administrator do?

¿Dónde viene esto?

196. What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?

¿Dónde viene esto?

197. What is NOT contained in the locale setting of the operating system?

¿Dónde viene esto?

198. What is the purpose of the command mailq?

¿Dónde viene esto?

199. What is true about the ntpdate command?

200. What is true regarding the command sendmail?

¿Dónde viene esto?

201. Which file inside the CUPS configuration directory contains the definition of the printers?

¿Dónde viene esto?

202. Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)

203. Which of the following are syslog facilities? (Choose TWO correct answers.)

204. Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?

¿Dónde viene esto?

205. Which of the following files assigns a user to its primary group?

206. Which of the following is observed and corrected by a NTP client?

207. Which of the following parameters are used for journalctl to limit the time frame of the output? (Choose TWO correct answers.)

208. Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.)

209. Given the following routing table:

Kernel IP routing table
Destination    Gateway          Genmask          Flags Metric
0.0.0.0        192.168.178.1    0.0.0.0          UG    0
192.168.1.0    0.0.0.0          255.255.255.0    U     0
192.168.2.0    192.168.1.1      255.255.255.0    U     0
192.168.178.0  0.0.0.0          255.255.255.0    U     9

How would an outgoing packet to the destination 192.168.2.150 be handled?

210. What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

211. What is true regarding a default route?

212. What of the following can be done by the command ifconfig? (Choose TWO correct answers.)

213. Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose THREE correct answers.)

214. Which of the following is a valid IPv6 address?

215. Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)

216. Which of the following programs can be used to determine the routing path to a given destination?

217. Which of the following statements is valid in the file /etc/nsswitch.conf?

218. What is a purpose of an SSH host key?

¿Dónde viene esto?

219. When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?

220. Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?

¿Dónde viene esto?

221. Which configuration file would be edited to change default options for the OpenSSH server?

222. Which configuration file would be edited to change the default options for outbound SSH sessions?

223. Which of the following commands can be used to limit the amount of memory a user may use?

¿Dónde viene esto?

224. Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)

225. Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?

226. Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?

227. On a Linux system with shadow passwords enabled, which file in the file system contains the password hashes of all local users? (Specify the full name of the file, including path.)

228. Which of the following nmcli subcommands exist? (Choose two.)

229. Which of the following changes may occur as a consequence of using the command ip? (Choose three.)

230. How many IP addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/26?

231. Which of the following commands configure network interfaces based on the system’s existing distributionspecific configuration files? (Choose two.)

232. Which of the following statements is true if the UID of a regular user is identical to the GID of a group?

¿Dónde viene esto?

233. Which of the following information is stored in /etc/shadow for each user?

234. Which of the following commands shows all active systemd timers?

¿Dónde viene esto?

235. What can be specified with useradd? (Choose two.)

236. Which if the following tools, used for DNS debugging, reports not only the response from the name sever but also details about the query?

237. Which of the following connection types, as seen in nmcli connection show, may exist in NetworkManager? (Choose three.)

¿Dónde viene esto?

238. On a Linux workstation, the route command takes a long time before printing out the routing table. Which of the following errors does that indicate?

¿Dónde viene esto?

239. What is true about the Hop Limit field in the IPv6 header?

¿Dónde viene esto?

240. Which command is used to set the hostname of the local system? (Specify only the command without any path or parameters.)

241. Which file, if present, must contain all users that are allowed to use the cron scheduling system? (Specify the full name of the file, including path.)

242. What command, depending on its options, can display the open TCP connections, the routing tables, as well as network interface statistics? (Specify only the command without any path or parameters.)

243. Which command included in NetworkManager is a curses application which provides easy acces to the NetworkManager on the command line? (Specify only the command without any path or parameters.)

¿Dónde viene esto?

244. Which option in the chrony configuration file changes the initial interval of polls to a NTP server in order to speed up the initial synchronization?

245. Which of the following commands is used to rotate, compress, and mail system logs?

246. Why is the correct configuration of a system’s time zone important?

¿Dónde viene esto?

247. Which of the following commands lists all queued print jobs?

248. Which of the following entries in /etc/syslog.conf writes all mail related events to the file /var/log/maillog and sends all critical events to the remote server logger.example.com?

mail * /var/log/maillog
mail crit @logger.example.org

Solución:

mail.* /var/log/maillog
mail.crit @logger.example.org
mail.* /var/log/maillog
mail,crit @logger.example.org
mail /var/log/maillog
mail.crit @logger.example.org Incorrecta
e. mail.* /var/log/maillog
mail.crit syslog://logger.example.org

249. Which of the following protocols is related to the term open relay?

¿Dónde viene esto?

250. Which of the following commands displays all environment and shell variables?

251. Which of the following statements is true regarding systemd timer units?

¿Dónde viene esto?

252. Which of the following comparison operators for test work on elements in the file system? (Choose two.)

253. Which of the following fields are available in the standard format of both the global /etc/crontab file as well as in user-specific crontab files? (Choose two.)

¿Dónde viene esto?

254. Which of the following commands should be executed when starting a login shell in order to change the language of messages for an internationalized program to Portuguese (pt)?

255. Which of the following steps prevents a user from obtaining an interactive login session?

¿Dónde viene esto?

256. Which of the following statements about systemd-journald are true? (Choose three.)

257. What is the top-level directory which contains the configuration files for CUPS? (Specify the full path to the directory.)

258. Which option in the /etc/ntp.conf file specifies an external NTP source to be queried for time information? (Specify only the option without any values or parameters.)

259. Which command included in systemd supports selecting messages from the systemd journal by criteria such as time or unit name? (Specify only the command without any path or parameters.)

260. Which command must be run after adding a new email alias to the configuration in order to make this change effective? (Specify the command without any path but including all required parameters.)

¿Dónde viene esto?

261. Given the following excerpt of the sudo configuration:

jane ANY=NOPASSWD: /bin/kill, /bin/id, PASSWD: /sbin/fdisk

Which of the following statements are true? (Choose three.)

* Jane can run /bin/id only after specifying her password.
* Jane can run /bin/kill without specifying a password. (**Solución**)
* Jane can run /sbin/fdisk after specifying her password. (**Solución**)
* Jane can run /sbin/fdisk after specifying root’s password.
* Jane can run /bin/id without specifying her password. (**Solución**)

262. Depending on a system’s configuration, which of the following files can be used to enable and disable network services running on this host?

¿Dónde viene esto?

263. Which of the following commands can identify the PID of a process which opened a TCP port?

264. On a machine running several X servers, how do programs identify the different instances of the X11 server?

265. Which command makes the shell variable named VARIABLE visible to subshells?

266. Which of the following features are provided by SPICE? (Choose two.)

¿Dónde viene esto?

267. What output is produced by the following command sequence?

echo ‘1 2 3 4 5 6’ | while read a b c; do
echo result $c $b $a;
done

268. Which of the following configuration files should be modified to globally set shell variables for all users?

269. What output does the command seq 10 produce?

270. What is the purpose of TCP wrapper?

271. When using X11 forwarding in SSH, what environment variable is automatically set in the remote shell in order to help applications to connect to the correct X11 server? (Specify only the environment variable without any additional commands or values.)

272. The presence of what file will temporarily prevent all users except root from logging into a system? (Specify the full name of the file, including path.)

¿Dónde viene esto?

273. Where is the systemd journal stored?

274. Which of the following options in the chrony configuration file define remote time sources? (Choose two.)

275. If an alias ls exists, which of the following commands updates the alias to point to the command ls -l instead of the alias’s current target?

276. Which of the following commands puts the output of the command date into the shell variable mydate?

277. Which of the following files is not read directly by a Bash login shell?

¿Dónde viene esto?

278. What is true about the file .profile in a user’s home directory?

¿Dónde viene esto?

279. What is true regarding the statement beginning with #! that is found in the first line of script? (Choose two.)

¿Dónde viene esto?

280. What is true regarding the file ~/.forward?

¿Dónde viene esto?

281. Which of the following commands display a list of jobs in the print queue? (Choose two.)

282. On a system using systemd-journald, which of the following commands add the message Howdy to the system log?

283. Which command is used to sync the hardware clock to the system clock? (Specify only the command without any path or parameters.)

284. Which file is processed by newaliases? (Specify the full name of the file, including path.)

¿Dónde viene esto?

285. What information related to a user account is modified using the chage command?

286. Which of the following is true about IPv6?

¿Dónde viene esto?

287. What is true about the following command?

nmcli device wifi connect WIFIoI

288. Which of the commands below might have produced the following output?

;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25190
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;www.example.org.               IN      NS

;; AUTHORITY SECTION:
example.org.            3600    IN      SOA     ns.icann.org. noc.dns.icann.org. 2022040424 7200 3600 1209600 3600

;; Query time: 150 msec
;; SERVER: 172.27.208.1#53(172.27.208.1)
;; WHEN: jue may 05 20:55:04 CEST 2022
;; MSG SIZE  rcvd: 97

289. Which of the following states can NetworkManager show regarding the system’s network connectivity?(Choose two.)

290. Which of the following are valid host addresses for the subnet 203.0.113.64/28? (Choose two.)

219. How does the ping command work by default?

292. Which of the following commands display the number of bytes transmitted and received via the eth0 network interface? (Choose two.)

¿Seguro que no es ip -s link show eth0?

293. How do shadow passwords improve the password security in comparison to standard no-shadow password?

294. After editing the TCP wrapper configuration to grant specific hosts access to a service, when do these changes become effective?

295. What is true regarding public and private SSH keys? (Choose two.)

296. Which mechanism does ssh use to interact with the SSH agent?

¿Dónde viene esto?

297. Which of the following commands finds all files owned by root that have the SetUID bit set?

298. Which parameter of the ssh command specifies the location of the private key used for login attempts?(Specify only the option name without any values or parameters.)

299. Which parameter is missing in the command ip link set XXXXXXXXXX dev eth0 to activate the previously inactive network interface eth0? (Specify the parameter only without any command, path or additional options.)

300. What command is used to add OpenSSH private keys to a running ssh-agent instance? (Specify the command name only without any path.)

301. Which directory holds configuration files for xinetd services? (Specify the full path to the directory.)

302. Which of the following sections exists in a systemd timer unit?

303. Which of the following getent invocations lists all existing users?

¿Dónde viene esto?

304. Given the following user’s crontab entry:

15 14 * * 1-5 /usr/local/bin/example.sh

When will the script /usr/local/bin/example.sh be executed?

305. If neither cron.allow nor cron.deny exist in /etc, which of the following is true?

¿Dónde viene esto?

306. Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

307. Which of the following protocols is designed to access the video card output of a virtual machine?

¿Dónde viene esto?

308. What is true about NetworkManager on a Linux system that uses its distribution’s mechanisms to configure network interfaces? (Choose two.)

¿Dónde viene esto?

309. Which standardized TCP port is used by HTTPS services?

310. Which of the following environment variables can be defined in locale.conf? (Choose two.)

311. Which of the following commands sets the system’s time zone to the Canadian Eastern Time?

312. Which file contains the data of the last change of a user’s password?

313. What option to useradd creates a new user’s home directory and provisions it with a set of standard files?