
101-500 Practice Dumps - Verified By ExamPrepAway Updated 510 Questions
Updated 101-500 Exam Dumps - PDF Questions and Testing Engine
The LPI 101-500 (LPIC-1 Exam 101, Part 1 of 2, version 5.0) certification exam is designed to test the knowledge and skills of individuals seeking to become certified Linux administrators. 101-500 exam is the first part of the LPIC-1 certification program which comprises of two exams, 101-500 and 102-500. Passing both exams is required to earn the LPIC-1 certification, which is a globally recognized certification for Linux administration.
NEW QUESTION # 75
What is the first program the Linux kernel starts at boot time when using System V init?
- A. /lib/init.so
- B. /sbin/init
- C. /proc/sys/kernel/init
- D. /boot/init
- E. /etc/rc.d/rcinit
Answer: B
Explanation:
Explanation/Reference:
NEW QUESTION # 76
When removing a package, which of the following dpkg options will completely remove the files including configuration files?
- A. --clean
- B. -remove
- C. --purge
- D. --delete
Answer: C
Explanation:
Explanation
When removing a package on a system using dpkg package management, the --purge option ensures that configuration files are removed as well. The --purge option is equivalent to the --remove option followed by the --purge-config-files option, which removes any configuration files that are marked as obsolete. The
--remove option only removes the package files, but leaves the configuration files intact. The --clean option removes any .deb files from the local cache, but does not affect the installed packages. The --delete option is not a valid option for dpkg. References:
* 1, 102.4 Lesson 1
* 3, 101-500 Exam - Free Questions and Answers - ITExams.com
* man dpkg
NEW QUESTION # 77
Which of the following is a limitation of the cut command?
- A. The cut command cannot reorder fields.
- B. The cut command only works on ASCII text.
- C. The cut command will always print one line of output for every line of input.
- D. The cut command can only select output by field position.
Answer: A
NEW QUESTION # 78
Given the following two symbolic links in a System V init configuration:
/etc/rc1.d/K01apache2
/etc/rc2.d/S02apache2
When are the scripts executed that are referenced by these links? (Choose two.)
- A. K01apache2is never run because K indicates a deactivated service.
- B. Both S02apache2and K01apache2are run during a system shutdown.
- C. K01apache2is run when runlevel 1 is entered.
- D. S02apache2is run when runlevel 2 is entered.
- E. S02apache2is run when runlevel 2 is left.
Answer: A,D
Explanation:
Explanation/Reference:
NEW QUESTION # 79
Which of the following files, located in the user home directory, is used to store the Bash history?
- A. .history_bash
- B. .bashrc_history
- C. .history
- D. .bash_histfile
- E. .bash_history
Answer: E
Explanation:
Explanation
The .bash_history file, located in the user home directory, is used to store the Bash history. The Bash history is a list of commands that the user has entered in the Bash shell. The .bash_history file is created when the user first starts a Bash session, and is updated when the user exits the session or runs the history command with the
-a or -w option. The user can view the contents of the .bash_history file with the cat command, or use the history command to see the numbered list of commands. The user can also edit, delete, or clear the
.bash_history file with various commands and options. The location and name of the history file can be changed by setting the HISTFILE environment variable to a different value. References:
* [LPI Exam 101 Detailed Objectives], Topic 103: GNU and Unix Commands, Objective 103.1: Work on the command line, Weight: 4, Key Knowledge Areas: Use of history and HISTFILE.
* Where is bash's history stored?, Topic: Bash maintains the list of commands internally in memory while it's running.
NEW QUESTION # 80
Which of the following commands prints a list of available package updates when using RPM-based package management?
- A. yum check-update
- B. yum list-update
- C. dpkg check-update
- D. yum list
- E. dpkg list
Answer: A
NEW QUESTION # 81
How can the list of files that would be installed by the RPM package file apache-xml.rpm be previewed?
- A. rpm -qv apache-xml.rpm
- B. rpm -qpl apache-xml.rpm
- C. rpm -ql apache-xml.rpm
- D. rpm -qp apache-xml.rpm
Answer: B
Explanation:
Explanation
The command rpm -qpl apache-ql.rpm is used to preview the list of files that would be installed by the RPM package file apache-xml.rpm. This command queries the package file without installing it and lists the contents of the package. Here's what each part of the command means:
* rpm is the command-line tool used for managing RPM packages on Linux systems.
* -qpl are options for the rpm command.
* q stands for query mode
* l stands for list the contents of the package.
* p specifies that the package being queried is not installed, but is a file located on the system.
* apache-xml.rpm is the name of the RPM package file you want to query.
So, when you run this command, it will display a list of all the files that are included in the apache-xml.rpm package file, without installing it. This can be useful for checking what files are included in the package before installing it or comparing it with another version of the package.
The other commands are either invalid or do not perform the same function as the correct answer. For example:
* rpm -qp apache-xml.rpm will only display the name and version of the package, not the list of files.
* rpm -qv apache-xml.rpm will display the verbose information about the package, such as the description, license, and changelog, but not the list of files.
* rpm -ql apache-xml.rpm will list the files that are installed on the system by the apache-xml.rpm package, but only if the package is already installed. If the package is not installed, it will return an error.
References:
* 4 ways to list files within a rpm package in Linux
* How to list all files installed by RPM package
* How to List Files Installed From an RPM Package in CentOS?
* How to list all files contained in an RPM package
NEW QUESTION # 82
What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)
- A. To create RAID 9 arrays.
- B. To create snapshots.
- C. To encrypt logical volumes.
- D. To dynamically change the size of logical volumes.
- E. To dynamically create or delete logical volumes.
Answer: B,D,E
Explanation:
Explanation
The Logical Volume Manager (LVM) is a tool that allows the creation and management of logical volumes on Linux systems. Logical volumes are partitions that can span multiple physical disks and can be resized or deleted without affecting the rest of the system. Some of the benefits of using LVM are:
* To dynamically change the size of logical volumes. LVM allows the user to increase or decrease the size of a logical volume without having to repartition the disk or reboot the system. This can be useful for allocating more space to a volume that is running out of space, or freeing up space from a volume that is not needed anymore.
* To create snapshots. LVM allows the user to create a snapshot of a logical volume, which is a copy of the volume at a certain point in time. Snapshots can be used for backup purposes, as they can be restored to the original volume if needed. Snapshots can also be used for testing purposes, as they can be mounted as read-only or read-write volumes without affecting the original volume.
* To dynamically create or delete logical volumes. LVM allows the user to create or delete logical volumes on the fly, without having to repartition the disk or reboot the system. This can be useful for creating temporary volumes for specific purposes, or deleting volumes that are no longer needed.
LVM cannot be used for the following purposes:
* To create RAID 9 arrays. RAID 9 is not a valid RAID level, and LVM does not support RAID functionality. RAID is a technique that uses multiple disks to provide redundancy, performance, or both.
RAID can be implemented at the hardware level, by using a RAID controller, or at the software level, by using tools such as mdadm or dmraid. LVM can work on top of RAID devices, but it cannot create them.
* To encrypt logical volumes. LVM does not provide encryption functionality. Encryption is a technique that protects data from unauthorized access by using a secret key to transform the data into an unreadable form. Encryption can be implemented at the disk level, by using tools such as dm-crypt or LUKS, or at the file system level, by using tools such as eCryptfs or EncFS. LVM can work on top of encrypted devices, but it cannot encrypt them.
References:
* LPI Linux Essentials - Topic 3: Command Line Operations
* LPI Linux Essentials - Topic 4: User Interfaces and Desktops
* LPI Linux Essentials - Topic 5: Administrative Tasks
* LPI Linux Essentials - Topic 6: Essential System Services
* LPI Linux Essentials - Topic 7: Networking Fundamentals
* LPI Linux Essentials - Topic 8: Security Fundamentals
* LPI Linux Essentials - Topic 9: Basic Scripting
* LPI Linux Essentials - Topic 10: IT Explorations
* LPI Linux Essentials - Topic 11: Finding Your Way on a Linux System
* LPI Linux Essentials - Topic 12: The Power of the Command Line
* LPI Linux Essentials - Topic 13: The Linux Operating System
* LPI Linux Essentials - Topic 14: Security and File Permissions
* LPI Linux Essentials - Topic 15: Basic Linux System Administration
* LPI Linux Essentials - Topic 16: Quotas
* LPI Linux Essentials - Topic 17: Managing Users and Groups
* LPI Linux Essentials - Topic 18: Ownership and Permissions
* LPI Linux Essentials - Topic 19: Special Permissions and Attributes
NEW QUESTION # 83
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Answer:
Explanation:
cmdline
Explanation
The file in the /proc filesystem that lists the parameters passed from the bootloader to the kernel is
/proc/cmdline. This file contains a single line of text that shows the command line arguments that were used to boot the kernel. These arguments can include various options, such as the root device, the init process, the console device, and more. The /proc/cmdline file is read-only and cannot be modified at runtime. The parameters in this file are determined by the bootloader configuration, such as GRUB or LILO, and can be changed by editing the corresponding files12.
References: 1: The /proc Filesystem - The Linux Kernel documentation 2: passing bootloader arguments to the kernel - Unix & Linux Stack Exchange
NEW QUESTION # 84
What effect does the sticky bit have when set on a directory?
- A. There is no effect because the sticky bit has been deprecated in Linux.
- B. It restricts deletion of files in this directory to only the root user and the file owner regardless of write permissions for other users.
- C. It instructs the kernel to keep the underlying data for the files in the directory intact to allow for undeletion of important files.
- D. It provides a hint to the kernel that files in this directory should be cached in memory, if possible.
Answer: B
NEW QUESTION # 85
Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?
- A. SIGSTOP
- B. SIGINT
- C. SIGTERM
- D. SIGKILL
Answer: B
NEW QUESTION # 86
You are using quota on your system. How can you see disk quota details?
- A. quota --list
- B. quotacheck
- C. repquota
- D. quota
- E. quota-l
Answer: C
NEW QUESTION # 87
You suspect that a new ethernet card might be conflicting with another device. Which file should you check within the /proc tree to learn which IRQs are being used by which kernel drivers?
Answer:
Explanation:
interrupts, /proc/interrupts
NEW QUESTION # 88
You enter the command date +%M. Wat does the output show you?
- A. the current second
- B. the current year
- C. the current minute
- D. the current month
- E. the current hour
Answer: C
NEW QUESTION # 89
Which command uninstalls a package but keeps its configuration files in case the package is re-installed?
- A. dpkg -s pkgname
- B. dpkg -v pkgname
- C. dpkg -P pkgname
- D. dpkg -L pkgname
- E. dpkg -r pkgname
Answer: E
NEW QUESTION # 90
......
New (2025) Lpi 101-500 Exam Dumps: https://www.examprepaway.com/Lpi/braindumps.101-500.ete.file.html
Best Way To Study For Lpi 101-500 Exam Brilliant 101-500 Exam Questions PDF: https://drive.google.com/open?id=1j81omDfgz2gprgiPKr5xSUpfWD0NuMZb