[Dec-2025] Exam Sure Pass Lpi Certification with 101-500 exam questions
Real Lpi 101-500 Exam Questions Study Guide
NEW QUESTION # 117
The USB device filesystem can be found under /proc/______/usb/. (Please fill in the blank with the single word only)
Answer:
Explanation:
bus
Explanation The USB device filesystem can be found under /proc/bus/usb/1. This is a virtual filesystem that provides information about the USB devices and buses connected to the system12. It contains files and directories that correspond to the USB host controllers, hubs, and devices12. For example, the following output shows the contents of /proc/bus/usb/ on a system with one USB host controller and two USB devices:
The directories 001 and 002 represent the USB buses, and each contain files that represent the USB devices on that bus. The file devices contains a summary of all the USB devices and their configurations. The file drivers contains a list of the USB drivers and the devices they are bound to12.
The /proc/bus/usb/ filesystem is deprecated and should not be used anymore3. It has been replaced by the
/sys/bus/usb/ filesystem, which is a sysfs mount that provides more detailed and structured information about the USB devices and buses3 .
References:
1: USB in a NutShell - Chapter 5 - Linux USB 2: Linux USB FAQ 3: Alternative to /proc/bus/usb/devices - Super User : [What is the difference between /dev/usb, /proc/bus/usb and /sys/bus/usb? - Super User]
NEW QUESTION # 118
Running chmod 640 filea.txtas a regular user doesn't update filea.txt's permission. What might be a reason why chmod cannot modify the permissions? (Choose two.)
- A. filea.txtis a hard link whose permissions are inherited from the target and cannot be set directly.
- B. filea.txthas the SetUID bit set which imposes the restriction that only the rootuser can make changes to the file.
- C. filea.txtis owned by another user and a regular user cannot change the permissions of another user's file.
- D. filea.txthas the sticky bit set and a regular user cannot remove this permission.
- E. filea.txtis a symbolic link whose permissions are a fixed value which cannot be charged.
Answer: C,E
Explanation:
Explanation/Reference:
NEW QUESTION # 119
The USB device filesystem can be found under /proc/______/usb/.
(Please fill in the blank with the single word only)
Answer:
Explanation:
bus
NEW QUESTION # 120
Where does lilo store its boot information?
- A. BootRAM
- B. /boot partition
- C. Boot ROM
- D. Master Boot Record
Answer: D
NEW QUESTION # 121
When removing a package on a system using dpkg package management, which dpkgoption ensures configuration files are removed as well?
- A. --purge
- B. --declare
- C. --clean
- D. --remove
- E. --vacuum
Answer: A
Explanation:
Explanation/Reference:
NEW QUESTION # 122
Which command uninstalls a package but keeps its configuration files in case the package is re-installed?
- A. dpkg -v pkgname
- B. dpkg -s pkgname
- C. dpkg -r pkgname
- D. dpkg -L pkgname
- E. dpkg -P 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 # 123
Which of the following statements is correct for a command line ending with a & character?
- A. Thecommand is run in background of the current shell.
- B. The command is run as a direct child of theinitprocess.
- C. The command's output is redirected to/dev/null.
- D. The result of the command defines if the next command will be run.
Answer: A
NEW QUESTION # 124
Which of the following is a limitation of the cut command?
- A. The cut command only works on ASCII text.
- B. The cut command can only select output by field position.
- C. The cut command cannot reorder fields.
- D. The cut command will always print one line of output for every line of input.
Answer: C
NEW QUESTION # 125
Which of the following commands generates a list of user names from /etc/passwdalong with their login shell?
- A. colrm 1,7 /etc/passwd
- B. chop -c 1,7 /etc/passwd
- C. cut -d: -f1,7 /etc/passwd
- D. column -s : 1,7 /etc/passwd
- E. sort -t: -k1,7 /etc/passwd
Answer: C
NEW QUESTION # 126
Which of the following commands outputs testto the shell?
cat <!EOT
- A. test
EOT
cat <<EOT - B. test
EOT
cat !<EOT - C. test
EOT
cat &<EOT - D. test
EOT - E. test
EOT
cat <|EOT
Answer: D
NEW QUESTION # 127
The/etc/ ________ file lists currently mounted devices.
Answer:
Explanation:
mtab
NEW QUESTION # 128
Which of the following commands will mount an already inserted CD-ROM in /dev/sr0 onto an existing directory /mnt/cdrom when issued with root privileges?
- A. mount /dev/cdrom /mnt/cdrom
- B. mount /dev/sr0 /mnt/cdrom
- C. mount -t cdrom /dev/sr0 /mnt/cdrom
- D. mount -f /dev/sr0/mnt/cdrom
- E. mount -l cdrom /dev/sr0 /mnt/cdrom
Answer: B
Explanation:
Explanation
The mount command is used to attach a filesystem to a directory on the system, which is called a mount point.
The mount command requires the device name or the UUID of the filesystem as the first argument, and the mount point as the second argument. Optionally, the mount command can also take some options, such as the filesystem type, the mount options, and the label. The syntax of the mount command is:
mount [options] device mountpoint
In this question, the device name of the CD-ROM is /dev/sr0, and the mount point is /mnt/cdrom. Therefore, the correct command to mount the CD-ROM is:
mount /dev/sr0 /mnt/cdrom
This command will mount the CD-ROM as a read-only filesystem with the type iso9660, which is the standard format for optical discs. The mount command can automatically detect the filesystem type and the mount options, so there is no need to specify them explicitly. However, if you want to specify them, you can use the
-t and -o options, respectively. For example, the following command is equivalent to the previous one:
mount -t iso9660 -o ro /dev/sr0 /mnt/cdrom
The other options are not correct because:
* A. mount /dev/cdrom /mnt/cdrom: This command may work on some systems, but it is not guaranteed to be correct. The /dev/cdrom is usually a symbolic link to the actual device name of the CD-ROM, which can vary depending on the system. For example, on some systems, the /dev/cdrom may point to
/dev/sr0, but on others, it may point to /dev/scd0 or /dev/hdc. Therefore, it is better to use the actual device name of the CD-ROM, which can be found by using the lsblk or the dmesg command.
* C. mount -t cdrom /dev/sr0 /mnt/cdrom: This command is not valid because cdrom is not a valid filesystem type. The filesystem type for optical discs is iso9660, not cdrom. The mount command will fail with an error message saying:
mount: unknown filesystem type 'cdrom'
* D. mount -l cdrom /dev/sr0 /mnt/cdrom: This command is not valid because -l is not a valid option for the mount command. The -l option is used to list all the mounted filesystems, not to mount a filesystem.
The mount command will fail with an error message saying:
mount: can't find /dev/sr0 in /etc/fstab
* E. mount -f /dev/sr0/mnt/cdrom: This command is not valid because it is missing a space between the device name and the mount point. The mount command requires two separate arguments for the device name and the mount point, separated by a space. Also, the -f option is used to fake the mount operation, not to perform the actual mount. The mount command will fail with an error message saying:
mount: /dev/sr0/mnt/cdrom: mount point does not exist.
References:
* How to mount cdrom in Linux - Learn Linux Configuration
* Mount CD-ROM in Linux using Command Line - nixCraft
* Mounting the CD or DVD (Linux) - IBM
NEW QUESTION # 129
A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?
apt-get search /etc/debian_version
- A. dpkg -S /etc/debian_version
- B.
- C. apt-file /etc/debian_version
- D. apt -r /etc/debian_version
- E. find /etc/debian_version -dpkg
Answer: C
NEW QUESTION # 130
What is the purpose of the Bash built-in export command?
- A. It makes the command history available to subshells.
- B. It sets up environment variables for applications.
- C. It shares NFS partitions for use by other systems on the network.
- D. It runs a command as a process in a subshell.
- E. It allows disks to be mounted remotely.
Answer: B
Explanation:
Explanation
The export command is a Bash built-in command that exports environment variables and functions for use in other shell sessions1. Environment variables are named values that affect the behavior of applications and processes2. For example, the PATH variable stores a list of directories where executable programs are located, and the LANG variable sets the language and locale of the system2. By using the export command, you can make these variables available to any child process spawned by the current shell1. For example, if you want to set the EDITOR variable to vim for all subshells, you can run:
export EDITOR=vim
The export command can also be used to export functions, which are blocks of code that can be reused by invoking their name3. For example, if you want to create and export a function that prints "Hello world", you can run:
hello () { echo "Hello world"; } export -f hello
Then, you can call the hello function in any subshell or script that inherits the environment from the current shell.
The other options are not related to the export command. Option A refers to the mount command, which attaches a filesystem to a directory4. Option B refers to the command substitution feature, which runs a command in a subshell and replaces it with its output5. Option C refers to the history command, which displays the command history of the current shell. Option E refers to the exportfs command, which maintains the table of exported NFS shares.
References:
* [LPI Linux Essentials - 1.3 Basic Editing]
* [LPI Linux Essentials - 1.4 I/O Redirection]
* [LPI Linux Essentials - 1.5 Manage Simple Partitions and Filesystems]
* Linux export Command with Examples - phoenixNAP
* bash - What does "export" do in shell programming? - Stack Overflow
* How to Use Export Command in Linux [Explained for Beginners]
* mount(8) - Linux manual page
* Command Substitution - Bash Reference Manual
* [history(3) - Linux manual page]
* [exportfs(8) - Linux manual page]
NEW QUESTION # 131
FILL BLANK
Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
nice
NEW QUESTION # 132
Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)
- A. 0
- B. 1
- C. 2
- D. 3
- E. 4
Answer: A,C
Explanation:
Explanation
Run levels are predefined modes of operation in the SysV init system that determine which processes and services are started or stopped. The default run level is the one that the system enters after booting. It is usually specified in the /etc/inittab file with a line like id:5:initdefault:. The run levels 0 and 6 should never be declared as the default run level because they are used to halt and reboot the system, respectively. If they are set as the default, the system will enter an endless loop of shutting down and restarting. The other run levels (1-5) have different meanings depending on the distribution, but they usually correspond to single-user mode, multi-user mode, network mode, graphical mode, etc. References: LPI Linux Essentials - 1.101.2, LPI Linux Administrator - 101.3
NEW QUESTION # 133
Which of the following statements is correct when talking about /proc/?
- A. All files within /proc/ are only readable by the root user.
- B. All files within /proc/ are read-only and their contents cannot be changed.
- C. All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.
- D. All changes to files in /proc/ are immediately recognized by the kernel.
Answer: D
Explanation:
Explanation
The /proc/ directory is a virtual filesystem that provides a view of the kernel's data structures and parameters.
It contains information about processes, hardware, memory, modules, and other aspects of thesystem. The files in /proc/ are not stored on disk, but are generated on the fly by the kernel when they are accessed. Therefore, any changes to files in /proc/ are immediately recognized by the kernel and affect its behavior. For example, writing a value to /proc/sys/kernel/hostname will change the system's hostname without rebooting. The files in
/proc/ are not all read-only; some of them can be modified by the root user or by processes with the appropriate permissions. The files in /proc/ are readable by any user, unless restricted by the kernel or by the mount options. References: LPI Linux Essentials - 1.101.2, LPI Linux Administrator - 102.3
NEW QUESTION # 134
After a minor security incident you are instructed by your lead sys-admin to verify the RPM's installed on running system. Which command will create a complete report which you can analyze for changes which may be security related?
- A. rpm-Va-nofiles > report
- B. .rpm-Va>report
- C. rpm-Qavy > report
- D. rpm-checkfiles >report
- E. rpm-Vqt-- nomd5>report
Answer: B
NEW QUESTION # 135
......
The LPIC-1 certification is recognized worldwide as a benchmark for Linux administration skills. It is an excellent way to demonstrate your knowledge and expertise in Linux administration to potential employers. The LPIC-1 certification exam is designed to be vendor-neutral, which means that it is not tied to any specific Linux distribution. This allows candidates to demonstrate their proficiency in Linux regardless of the distribution they are most familiar with.
Updated and Accurate 101-500 Questions for passing the exam Quickly: https://www.updatedumps.com/Lpi/101-500-updated-exam-dumps.html
Download Real 101-500 Exam Dumps for candidates. 100% Free Dump Files: https://drive.google.com/open?id=1pfxSyzsBrxHqVtnkI_v0UV5gn9rWNEXp