
Latest 101-500 Pass Guaranteed Exam Dumps Certification Sample Questions
New 101-500 Test Materials & Valid 101-500 Test Engine
Lpi 101-500 certification exam is part of the LPIC-1 certification program, which is designed to test the proficiency of individuals in the Linux operating system. 101-500 exam, also known as LPIC-1 Exam 101, Part 1 of 2, version 5.0, covers the foundational concepts of Linux, including basic system architecture, command-line usage, and file management. It is an entry-level certification exam that is ideal for individuals who are just starting their careers in the IT industry.
NEW QUESTION # 14
What does the command mount -a do?
- A. It shows all mounted filesystems.
- B. It mounts all available filesystems onto the current directory.
- C. It mounts all filesystems listed in /etc/fstab which have the option auto set.
- D. It mounts all user mountable filesystems for the current user.
- E. It mounts all filesystems listed in /etc/fstab which have the option noauto set.
Answer: C
Explanation:
Explanation
The command mount -a mounts all filesystems that are listed in the file /etc/fstab and have the option auto set.
The option auto means that the filesystem can be mounted automatically by the mount -a command or at boot time. The option noauto means that the filesystem can only be mounted explicitly by the mount command with the device or mount point specified12. The file /etc/fstab containsinformation about the filesystems that are known to the system and how they can be mounted3. The command mount -a is useful for mounting all the filesystems that are needed by the system after a change in /etc/fstab or after a reboot4. References: 1:
mount(8) - Linux man page 2: Linux mount and umount commands help and examples 3: fstab(5) - Linux man page 4: How to Use the mount Command on Linux
NEW QUESTION # 15
The /etc/_______ file lists currently mounted devices.
Answer:
Explanation:
mtab
NEW QUESTION # 16
Which of the following shell commands makes the already defined variable TEST visible to new child processes? (Choose two.)
- A. declare +x TEST
- B. export -v TEST
- C. export TEST
- D. declare -x TEST
- E. visible TEST
Answer: C,D
NEW QUESTION # 17
Which file the /proc file system lists parameters passed from the bootloader to the kernel?
Answer:
Explanation:
/proc/cmdline
NEW QUESTION # 18
What is the purpose of the Filesystem Hierarchy Standard?
- A. It provides unified tools to create, maintain and manage multiple filesystems in a common way.
- B. It is a security model used to ensurefiles are organized according to their permissions and accessibility.
- C. Itis a distribution neutral description of locations of files and directories.
- D. It defines a common internal structure of inodes for all compliant filesystems.
Answer: C
NEW QUESTION # 19
What does the command mount --bind do?
- A. It makes the contents of one directory available in another directory
- B. It mounts all file systems listed in /etc/fstab which have the option userbind set
- C. It mounts all user mountable filesystems to the user's home directory
- D. It permanently mounts a regular file to a directory
- E. It mounts all available filesystems to the current directory
Answer: A
NEW QUESTION # 20
Which command uninstalls a package but keeps its configuration files in case the package is re-installed?
- A. dpkg -P pkgname
- B. dpkg -s pkgname
- C. dpkg -r pkgname
- D. dpkg -v pkgname
- E. dpkg -L pkgname
Answer: C
Explanation:
Explanation
The command that uninstalls a package but keeps its configuration files in case the package is re-installed is dpkg -r pkgname. The dpkg command is the low-level tool for installing, building, removing, and managing Debian packages. The -r or --remove option removes an installed package from the system, but it does not delete the configuration files and other data that belong to the package. This way, if the package is re-installed later, the previous settings are preserved. The dpkg command is part of the 101.1 Determine and configure hardware settings topic of the LPI Linux Essentials certification program12.
The other options are either invalid or do not perform the desired task. The dpkg -s pkgname command shows the status of an installed package, but it does not uninstall it. The dpkg -L pkgname command lists the files that belong to an installed package, but it does not uninstall it. The dpkg -P pkgname command purges an installed or removed package, which means it deletes the configuration files and other data that belong to the package. The dpkg -v pkgname command shows the version of an installed package, but it does not uninstall it.
NEW QUESTION # 21
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?
- A. Using lsmod --remove --autoclean without specifying the name of a specific module
- B. Adding a blacklist line including the name of the offending module to the file
/etc/modprobe.d/blacklist.conf - C. Using modinfo -k followed by the name of the offending module
- D. Deleting the kernel module's directory from the file system and recompiling the kernel, including its modules
- E. Using modprobe -r followed by the name of the offending module
Answer: B
NEW QUESTION # 22
What is the correct way to set the default systemd boot target to multi-user?
- A. systemctl set-default multi-user.target
- B. systemctl boot -p multi-user.target
- C. systemctl isolate multi-user.target
- D. systemctl set-runlevel multi-user.target
- E. systemctl set-boot multi-user.target
Answer: A
NEW QUESTION # 23
Which of the following regular expressions represents a single upper-case letter?
- A. :UPPER:
- B. {AZ}
- C. [A-Z]
- D. %C
- E. !a-z
Answer: C
NEW QUESTION # 24
Which SysV init configuration file is commonly used to set the default run level?
(Specify the full name of the file, including path.)
Answer:
Explanation:
inittab
NEW QUESTION # 25
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
- A. rmdir ~/\\dir
- B. rmdir ~/\dir
- C. rmdir '~/\dir'
- D. rmdir ~/'dir'
- E. rmdir "~/\dir"
Answer: A
NEW QUESTION # 26
What key sequence will suspend the current process and return you to a shell prompt?
- A. Ctrl-c
- B. Ctrl-d
- C. Ctrl-z
- D. Ctrl-x
Answer: C
NEW QUESTION # 27
Select the line that best represents what permissions the /etc/passwd file should have
- A. all answers listed are correct
- B. -rw------- 1 root root 531 Apr 3 12:36 /etc/passwd
- C. -rw-r--r-- 1 root root 531 Apr 312:36 /etc/passwd
- D. all answers listed are not correct
- E. -rw-r--r-- 1 1 1 531 Apr 3 12:36 /etc/passwd
Answer: C
NEW QUESTION # 28
When in Normal mode invi, which character can be used to begin a reverse search of the text?
- A. r
- B. /
- C. ?
- D. F
Answer: C
Explanation:
In vi, the ? character can be used to begin a reverse search of the text. This means that the search will start from the current cursor position and move backwards towards the beginning of the file. The search pattern can be any regular expression that matches the desired text. To repeat the search, the user can press n for the previous match or N for the next match. The / character can be used to begin a forward search of the text, which means that the search will start from the current cursor position and move forwards towards the end of the file. The F and r characters are not used for searching, but for other commands in vi. The F command is used to move the cursor to a previous occurrence of a specified character in the current line. The r command is used to replace the character under the cursor with another character. References:
* LPI 101-500 Exam Objectives, Topic 103.8, Weight 4
* LPI Learning Materials, Chapter 3.8, Advanced Scripting
* Web Search Results,
NEW QUESTION # 29
Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?
- A. -c
- B. -a
- C. --continue
- D. --no-clobber
Answer: B
Explanation:
Explanation
The -a option to the tee command will cause the output to be appended to the end of the output file instead of overwriting the existing file contents. The tee command reads from standard input (STDIN) and writes to standard output (STDOUT) and one or more files simultaneously. For example, ls | tee file.txt will display the output of the ls command and also write it to file.txt. If file.txt already exists, it will be overwritten unless the
-a option is used. References: LPI Exam 101 Detailed Objectives, Topic 103: GNU and Unix Commands, Weight: 25, Objective 103.3: Perform basic file management, tee command
NEW QUESTION # 30
Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?
- A. apropos
- B. which
- C. whereis
- D. query
- E. find
Answer: E
NEW QUESTION # 31
What command changes the nice level of a running process?
(Specify ONLY the command without any path or parameters)
Answer:
Explanation:
renice
NEW QUESTION # 32
......
101-500 Sample with Accurate & Updated Questions: https://pass4sure.exam-killer.com/101-500-valid-questions.html

