Read Online 101-500 Test Practice Test Questions Exam Dumps
Easily To Pass New 101-500 Premium Exam Updated [Nov 06, 2025]
Lpi 101-500 exam is designed to test the basic knowledge and skills of a Linux administrator. It is the first part of the LPIC-1 certification process, which is an industry-recognized certification for Linux professionals. 101-500 exam covers a wide range of topics, including system architecture, Linux installation and package management, GNU and Unix commands, devices, and file systems.
NEW QUESTION # 202
You wish to kill a process with a PID of 123. Select the command which will allow the process to
"clean up" before exiting.
- A. kill -15123
- B. kill -9 123
- C. kill -1 123
- D. kill -17 123
Answer: A
NEW QUESTION # 203
Which of the following environment variables overrides or extends the list of directories holding shared libraries?
- A. LD_LIB_PATH
- B. LD_LOAD_PATH
- C. LD_SHARE_PATH
- D. LD_RUN_PATH
- E. LD_LIBRARY_PATH
Answer: E
NEW QUESTION # 204
Which of the following commands changes all occurrences of the word "bob" in file data to "Bob" and prints the result to standard output?
- A. sed'/bob/Bob/' data
- B. sed's/bob,Bob/' data
- C. sed's/bob/Bob/g' data
- D. sed's/bob/Bob/' data
- E. sed'/bob/Bob' data
Answer: C
Explanation:
Explanation
The sed command is used to perform various text processing tasks on a file or a stream. The s command is used to substitute a pattern with a replacement. The g flag is used to replace all occurrences of the patternin a line. The / character is used to separate the pattern, the replacement, and the flags. Therefore, the command sed's/bob/Bob/g' data will change all occurrences of the word "bob" in file data to "Bob" and print the result to standard output. The other commands are incorrect because they either use the wrong syntax or do not replace all occurrences of the word "bob". References:
* LPI 101-500 Exam Objectives, Topic 103.7, Weight 4
* LPI Learning Materials, Chapter 3.7, Basic Scripting
* Web Search Results, 1
NEW QUESTION # 205
How can you turn off the group quota in /pub?
- A. quotadown /pub
- B. quotaoff -gv /pub
- C. rm /pub/quota.group
- D. quotaoff /pub
Answer: B
NEW QUESTION # 206
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?
- A. mke2fs
- B. fixe2fs
- C. mod2fs
- D. fsck
- E. tune2fs
Answer: E
Explanation:
Explanation
The utility that can be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem is tune2fs. This command can adjust various parameters of a Linux ext2, ext3, or ext4 filesystem, such as the maximum mount count, the check interval, the reserved blocks percentage, and the default mount options. To change the check interval, the -i option can be used, followed by a time value. For example, to set the check interval to 180 days for the filesystem on /dev/sda1, the following command can be used:
sudo tune2fs -i 180d /dev/sda1
This command will modify the superblock of the filesystem, which contains the metadata and configuration information, without affecting the data stored on the filesystem. The other options are incorrect because they are not suitable for changing the check interval of an ext2 filesystem. Option A is wrong because there is no such utility as mod2fs. Option B is wrong because fsck is a utility for checking and repairing filesystems, not changing their parameters. Option D is wrong because mke2fs is a utility for creating ext2 filesystems, which will erase the existing data on the partition. Option E is wrong because there is no such utility as fixe2fs.
For more information on how to use the tune2fs command, you can refer to the following articles:
* 15 tune2fs command examples in Linux [Cheat Sheet] - GoLinuxCloud
* Linux tune2fs command With Examples - GeeksforGeeks
* tune2fs command-file system management - Linuxstar
* tune2fs Command Examples - Gianforte School of Computing
* tune2fs Command - IBM
NEW QUESTION # 207
What does the command grub-install /dev/sda do?
- A. GRUB recompiles the Linux Kernel and installs it on the Master Boot Record of device/dev/sda.
- B. GRUB creates partitions on the device/dev/sdato be used with Linux.
- C. GRUB sets the default BIOS boot device to/dev/sda.
- D. GRUB installs all required files and configures the boot loader on device/dev/sda.
Answer: D
NEW QUESTION # 208
A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?
- A. dpkg -S /etc/debian_version
- B. apt -r /etc/debian_version
- C. apt-file /etc/debian_version
- D. apt-get search /etc/debian_version
- E. find /etc/debian_version -dpkg
Answer: E
NEW QUESTION # 209
Once a shell variable has been created, how can the variable be removed from the environment?
- A. unset VAR
- B. set -u VAR
- C. VAR=
- D. set -d VAR
Answer: A
NEW QUESTION # 210
The /etc/_______ file lists currently mounted devices.
Answer:
Explanation:
mtab
Explanation
The /etc/mtab file is a system-generated file that lists all the currently mounted devices and their mount options. It is updated automatically by the mount and umount commands. It can be used to check which devices are mounted and where, as well as their filesystem type and mount options. The /etc/mtab file hasthe same format as the /etc/fstab file, which is a user-edited file that lists the devices that should be mounted at boot time or on demand. References:
* LPIC-1 Exam 101 Objectives, Topic 101: System Architecture, 101.1 Determine and configure hardware settings, Key Knowledge Areas, The following is a partial list of the used files, terms and utilities: /etc/mtab
* LPIC-1 101-500 Exam Prep, Section 1: System Architecture, Lesson 1.1: Determine and Configure Hardware Settings, Video: 1.1.4 Mounting and Unmounting Filesystems, Transcript: The /etc/mtab file is a system-generated file that lists all the currently mounted devices and their mount options.
NEW QUESTION # 211
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.)
- A. By creating a hard link from the old to the new path of the data.
- B. By running the command touch on the old path.
- C. By creating a symbolic link from the old to the new path of the data.
- D. By creating an ACL redirection from the old to the new path of the data.
- E. By mounting the new filesystem on the original path of the data.
Answer: C,E
NEW QUESTION # 212
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. apt-file /etc/debian_version
- B. dpkg -S /etc/debian_version
- C. apt -r /etc/debian_version
- D.
- E. find /etc/debian_version -dpkg
Answer: A
NEW QUESTION # 213
Which of the following statements is correct for a command line ending with a & character?
- A. The result of the command defines if the next command will be run.
- B. The command's output is redirected to /dev/null.
- C. The command is run in background of the current shell.
- D. The command is run as a direct child of the init process.
Answer: C
NEW QUESTION # 214
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
- A. sed 's/bob, Bob/' letter > newletter
- B. sed '/bob/Bob' letter > newletter
- C. sed 's/bob/Bob/g' letter > newletter
- D. sed's/bob/Bob' letter > newletter
- E. sed s/bob/Bob/ letter < newletter
Answer: C
NEW QUESTION # 215
Which of the following commands lists the dependencies of the RPM package file foo.rpm?
rpm -qpR foo.rpm
- A. rpm -pD foo
- B. rpm -ld foo.rpm
- C. rpm -R foo.rpm
- D. rpm -dep foo
Answer: D
NEW QUESTION # 216
Which of the following commands reads a file and creates separate chunks of a given size from the file's contents?
- A. ar
- B. parted
- C. cat
- D. break
- E. split
Answer: E
NEW QUESTION # 217
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.)
Answer:
Explanation:
watch
NEW QUESTION # 218
You are the system administrator for a consulting firm where several people use Linux as their desktop operating system. One of your users has installed a commercial publishing program that works under X on a variety of UNIX and Linux platforms. The user made a series of configuration changes regarding the initial window size, location and color. Now, he is having difficulty undoing these changes and is asking for your help. In which file would you think you would most likely find the configuration settings you are seeking to change?
- A. ~/.Xdefaults
- B. ~/.XF86Config
- C. ~/.xinitrc
- D. /etc/X11/XF86Config
- E. ~/.xconfig
Answer: A
NEW QUESTION # 219
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.)
- A. By creating a hard link from the old to the new path of the data.
- B. By running the command touch on the old path.
- C. By creating a symbolic link from the old to the new path of the data.
- D. By creating an ACL redirection from the old to the new path of the data.
- E. By mounting the new filesystem on the original path of the data.
Answer: C,E
Explanation:
Explanation
The former path of the data can be kept intact by creating a symbolic link from the old to the new path of the data or by mounting the new filesystem on the original path of the data. A symbolic link is a special file that points to another file or directory. It can be used to create a shortcut to the new location of the data without changing the applications that access it. Mounting the new filesystem on the original path of the data means that the data will appear as if it is still in the same location, but it is actually stored on a different device or partition. This can be done by editing the /etc/fstab file or using the mount command. References:
* [LPI Linux Essentials - 1.3 Basic File Management]
* [LPI Linux Essentials - 1.4 Finding Files]
* [LPI Linux Essentials - 2.1 Using Devices, Linux Filesystems, Filesystem Hierarchy Standard]
* [LPI Linux Essentials - 2.2 Mounting, Unmounting Filesystems]
* [LPI Linux Essentials - 2.3 Disk Partitions]
NEW QUESTION # 220
Consider the following output from the command is -i:
How would a new file named c.txt be created with the same inode number as a.txt (Inode
525385)?
- A. ln a.txt c.txt
- B. ln *h a.txt c.txt
- C. ln c.txt a.txt
- D. ln *f c.txt a.txt
- E. ln *i 525385 c.txt
Answer: A
NEW QUESTION # 221
Which command must be entered before exiting vi to save the current file as filea.txt?
%s filea.txt
- A. %w filea.txt
- B. :s filea.txt
- C. :w filea.txt
- D.
- E. :save filea.txt
Answer: B
NEW QUESTION # 222
Which command line option would you use to restrict the GNU find command to searching a particular number of subdirectories?
- A. -dirmax
- B. -maxdepth
- C. -n
- D. --max-dirs
- E. -s
Answer: B
NEW QUESTION # 223
How can the list of files that would be installed by the RPM package file apache-xml.rpm be previewed?
- A. rpm -ql apache-xml.rpm
- B. rpm -qp apache-xml.rpm
- C. rpm -qv apache-xml.rpm
- D. rpm -qpl apache-xml.rpm
Answer: D
NEW QUESTION # 224
Which of the following programs will only find files that are in your PATH?
- A. slocate
- B. locate
- C. find
- D. which
Answer: D
NEW QUESTION # 225
You have just added a CD-ROM drive (/dev/hdd) to your system and have added it to your fstab.
Typically you can use which of the following commands to mount media in that drive to
/mnt/cdrom?
- A. automount/mnt/hdd/mnt/cdrom
- B. mount/mnt/cdrom
- C. mount/dev/cdrom/mnt/cdrom
- D. mount/dev/cdrom
- E. mount -t cdrom/dev/cdrom/mnt/cdrom
Answer: B
NEW QUESTION # 226
Which of the following signals is sent to a process when the key combination Ctrl+C is pressed on the keyboard?
- A. SIGTERM
- B. SIGINT
- C. SIGCONT
- D. SIGKILL
- E. SIGSTOP
Answer: B
NEW QUESTION # 227
......
101-500 Certification All-in-One Exam Guide Nov-2025: https://www.test4engine.com/101-500_exam-latest-braindumps.html
Get Real 101-500 Exam Dumps [Nov-2025] Practice Tests: https://drive.google.com/open?id=1aUpPvh-xTVLSvsfM3dAL7IPwfa6EE8su