[Jun 01, 2025] Valid 101-500 Test Answers Full-length Practice Certification Exams [Q240-Q258]

Share

[Jun 01, 2025] Valid 101-500 Test Answers Full-length Practice Certification Exams

Accurate & Verified 2025 New 101-500 Answers As Experienced in the Actual Test!

NEW QUESTION # 240
What does the command mount -a do?

  • A. It opens /etc/fstab to edit
  • B. It mounts the floppy disk for all users
  • C. It mounts all file systems listed in /etc/fstab
  • D. It shows all mounted file systems

Answer: C


NEW QUESTION # 241
Which command will uninstall a package but leave its configuration files in case the package is re-installed?

  • A. dpkg -r pkgname
  • B. dpkg -s pkgname
  • C. dpkg -P pkgname
  • D. dpkg -L pkgname

Answer: A

Explanation:
Explanation
The dpkg command is used to manage Debian packages on Linux systems. The -r option removes a package but leaves its configuration files in case the package is re-installed. The -P option purges a package and removes its configuration files as well. The -s option shows the status of a package and the -L option lists the files installed by a package. References:
* LPI Linux Essentials, Chapter 6: Managing Software, Section 6.2: Debian Package Management
* LPI Linux Administrator, Exam 101: System Architecture, Topic 102: Linux Installation and Package Management, Objective 102.5: Manage shared libraries
* LPI Linux Engineer, Exam 201: Linux Kernel, Topic 201: System Architecture, Objective 201.1: Kernel Components and Compilation


NEW QUESTION # 242
You are running Linux 2.0.36 and you need to add a USB mouse to your system. Which of the following statements is true?

  • A. You need to load the USB modulesfor your existing modular kernel.
  • B. You need to rebuild the kernel.
  • C. You need to upgrade the kernel.
  • D. USB support is no available in Linux.

Answer: C


NEW QUESTION # 243
The message "Hard Disk Error" is displayed on the screen during Stage 1 of the GRUB boot process.
What does this indicate?

  • A. One or more of the filesystems on the hard disk has errors and a filesystem check should be run
  • B. The kernel was unable to execute /bin/init
  • C. The next Stage cannot be read from the hard disk because GRUB was unable to determine the size and geometry of the disk
  • D. The BIOS was unable to read the necessary data from the Master Boot Record to begin the boot process

Answer: C


NEW QUESTION # 244
Which command must be entered before exiting vi to save the current file as filea.txt?

  • A. %w filea.txt
  • B. :s filea.txt
  • C. %s filea.txt
  • D. :w filea.txt
  • E. :save filea.txt

Answer: D


NEW QUESTION # 245
What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)

Answer:

Explanation:
menu.lst, grub.conf, grub.cfg


NEW QUESTION # 246
Which of the following files, located in the user home directory, is used to store the Bash history?

  • A. .history
  • B. .history_bash
  • C. .bashrc_history
  • D. .bash_history
  • E. .bash_histfile

Answer: D

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 # 247
Which of the following commands shows the definition of a given shell command?

  • A. stat
  • B. where
  • C. case
  • D. type

Answer: D

Explanation:
Explanation
The type command shows the type of a given shell command, which can be one of the following: alias, keyword, function, builtin, or file. For example, type ls will show that ls is an alias for ls --color=auto. The type command can also show the full path of a file command, such as type grep will show that grep is
/bin/grep. References: LPI Linux Essentials, type command


NEW QUESTION # 248
Which character, added to the end of a command, runs that command in the background as a child process of the current shell?

  • A. %
  • B. +
  • C. &
  • D. #
  • E. !

Answer: C

Explanation:
Explanation
The character that, added to the end of a command, runs that command in the background as a child process of the current shell is the ampersand symbol (&). This means that the command will not block the shell and the user can enter other commands while the background command is running. The background command will also not receive any input from the keyboard or the terminal. The shell will print the job number and the process ID of the background command, and the user can use the jobs command to list the status of all background jobs in the current shell session. To bring a background job to the foreground, the user can use the fg command with the job number or the process ID. To terminate a background job, the user can use the kill command with the process ID.
The other characters are not valid or relevant for running a command in the background. The exclamation mark (!) is used to access the command history or to negate a condition. The plus sign (+) is used for arithmetic operations or to append text. The percent sign (%) is used for arithmetic operations or to refer to a job number. The hash sign (#) is used for comments or to specify a hexadecimal number.
References:
* [LPI Exam 101 Detailed Objectives], Topic 103: GNU and Unix Commands, Objective 103.5: Create, monitor and kill processes, Weight: 4, Key Knowledge Areas: Run jobs in the foreground and background.
* How to Run Linux Commands in Background, Topic: Using Ampersand.


NEW QUESTION # 249
Which of the following commands will print important system information such as the kernel version and machine hardware architecture?

  • A. lspci
  • B. info
  • C. sysinfo
  • D. uname
  • E. arch

Answer: D,E

Explanation:
Explanation
The commands that will print important system information such as the kernel version and machine hardware architecture are uname and arch. The uname command prints system information, such as the kernel name, release, version, machine, processor, hardware platform, and operating system. The arch command prints the machine hardware name, which is equivalent to uname -m. For example, uname -a will print Linux
5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux, and arch will print x86_64. The sysinfo command is not a valid Linux command. The lspci command prints information about PCI buses and devices in the system. The info command prints documentation for a given topic or command. References:
LPI Exam 101 Detailed Objectives, Topic 103: GNU and Unix Commands, Weight: 25, Objective 103.1:
Work on the command line, uname command, arch command, lspci command, info command


NEW QUESTION # 250
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 mounting the new filesystem on the original path of the data.
  • B. By creating a symbolic link from the old to the new path of the data.
  • C. By running the command touch on the old path.
  • D. By creating an ACL redirection from the old to the new path of the data.
  • E. By creating a hard link from the old to the new path of the data.

Answer: A,B


NEW QUESTION # 251
Which of the following commands lists all currently installed packages when using RPM package management?

  • A. yum --query --all
  • B. yum --list --installed
  • C. rpm --query --all
  • D. rpm --list -installed

Answer: C


NEW QUESTION # 252
What command returns the first few lines of a given file?

Answer:

Explanation:
head


NEW QUESTION # 253
While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?

  • A. :w
  • B. :e
  • C. :r
  • D. :n

Answer: B


NEW QUESTION # 254
Which of the following explanations are valid reasons to run a command in the background of your shell?

  • A. The command can run at a lower priority than normal commands run on the command line.
  • B. The command has to run immediately but the user needs to log out.
  • C. The system is being shut down and the command needs to restart execution immediately after the reboot.
  • D. The command does not need to execute immediately.

Answer: B


NEW QUESTION # 255
How many fields are in a syntactically correct line of /etc/fstab?

  • A. 0
  • B. 1
  • C. 2
  • D. 3
  • E. 4

Answer: A

Explanation:
Explanation
A syntactically correct line of /etc/fstab must have six fields, separated by whitespaces or tabs. The fields are as follows:
* The device file, UUID or label or other means of locating the partition or data source.
* The mount point, which is the directory where the device is/will be mounted.
* The file system type, which specifies the type of the file system.
* The mount options, which are a comma-separated list of options that control how the file system is mounted and accessed.
* The dump flag, which is a number that indicates whether the file system should be backed up by the dump utility. This is an outdated method and should not be used.
* The fsck order, which is a number that indicates the order in which the file system should be checked by the fsck utility at boot time. A value of 0 means no check, a value of 1 means the root file system, and a value of 2 or higher means other file systems.
For example, a line of /etc/fstab could look like this:
UUID=80b496fa-ce2d-4dcf-9afc-bcaa731a67f1 /mnt/example ext4 defaults 0 2 This means that the file system with the UUID 80b496fa-ce2d-4dcf-9afc-bcaa731a67f1 is mounted on
/mnt/example, has the type ext4, uses the default mount options, is not backed up by dump, and is checked by fsck after the root file system.
References:
* How fstab works - introduction to the /etc/fstab file on Linux
* /etc/fstab - Gentoo wiki
* fstab(5) - Linux manual page
* /etc/fstab file | Linux# - Geek University


NEW QUESTION # 256
Typically, which top level system directory is used for files and data that change regularly while the system is running and are to be kept between reboots? (Specify only the top level directory)

Answer:

Explanation:
/var, /var/, var, var/


NEW QUESTION # 257
When redirecting the output of find to the xargs command, what option to find is useful if the filenames contain spaces?

  • A. -printnul
  • B. -nospace
  • C. *print0
  • D. *rep-space
  • E. *ignore-space

Answer: C


NEW QUESTION # 258
......

Certification Topics of 101-500 Exam PDF Recently Updated Questions: https://www.testpdf.com/101-500-exam-braindumps.html

101-500 Certification Sample Questions certification Exam: https://drive.google.com/open?id=1ezY0SFw-CZQ_8cAMuuCR1OQ9zYLT45gW