
Authentic Best resources for 101-500 Test Engine Practice Exam
[2024] 101-500 PDF Questions - Perfect Prospect To Go With Pass4training Practice Exam
NEW QUESTION # 63
What command changes the nice level of a running process? (Specify ONLY the command without any path or parameters)
Answer:
Explanation:
renice
NEW QUESTION # 64
What information can the lspcicommand display about the system hardware? (Choose three.)
- A. PCI bus speed
- B. Ethernet MAC address
- C. Device vendor identification
- D. Device IRQ settings
- E. System battery type
Answer: A,C,D
NEW QUESTION # 65
Which of the following commands moves and resumes in the background the last stopped shell job?
- A. back
- B. fg
- C. bg
- D. run
Answer: C
Explanation:
Explanation
The bg command is used to move and resume in the background the last stopped shell job. A stopped job is a process that has been suspended by using Ctrl+Z or the kill -STOP command. The bg command will resume the execution of the stopped job and allow it to run in the background, without blocking the current shell. The bg command can also take a job number as an argument, which can be obtained by using the jobs command.
For example, if the last stopped job is 1+ Stopped sleep 500, then the following command will move and resume it in the background:
bg %1
The output will be:
1+ sleep 500 &
The fg command is used to move and resume in the foreground the last stopped or backgrounded job. The run and back commands are not valid commands in Linux. 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: Use of jobs, fg and bg commands.
* Linux Commands: jobs, bg, and fg, Topic: The bg Command.
NEW QUESTION # 66
Which of the following commands reads a file and creates separate chunks of a given size from the file's contents?
- A. split
- B. parted
- C. cat
- D. break
- E. ar
Answer: A
NEW QUESTION # 67
Which of the following properties of a Linux system should be changed when a virtual machine is cloned?
(Choose two.)
- A. The file system
- B. The partitioning scheme
- C. The SSH host keys
- D. The permissions of /root/
- E. The D-Bus Machine ID
Answer: C,E
NEW QUESTION # 68
When removing a package, which of the following dpkg options will completely remove the files including configuration files?
- A. --delete
- B. --purge
- C. -remove
- D. --clean
Answer: B
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 # 69
Which of the following is the device file name for the second partition on the only SCSI drive?
- A. /dev/sd1p2
- B. /dev/hda1
- C. /dev/sd0a2
- D. /dev/sda2
Answer: D
Explanation:
Explanation
The correct device file name for the second partition on the only SCSI drive is /dev/sda2. This is because SCSI drives use the naming scheme sdX, where X is a letter starting from a for the first drive, b for the second drive, and so on. The partitions on each drive are numbered from 1 to the maximum number of partitions supported by the drive. Therefore, the first partition on the first SCSI drive is /dev/sda1, the second partition on the first SCSI drive is /dev/sda2, the first partition on the second SCSI drive is /dev/sdb1, and so on. The other options are incorrect because they do not follow the SCSI naming scheme. Option A is wrong because it uses the naming scheme for IDE drives, which is hdX. Option C is wrong because it uses the naming scheme for BSD drives, which is sdXaY, where X is a number and Y is a letter. Option D is wrong because it uses the naming scheme for Solaris drives, which is sdXpY, where X is a number and Y is a number. References:
* [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]
* Device file - ArchWiki
* What is the Linux drive naming scheme? - Ask Ubuntu
NEW QUESTION # 70
Which command will display messages from the kernel that were output during the normal boot sequence?
Answer:
Explanation:
dmesg
Explanation
The command dmesg will display messages from the kernel that were output during the normal boot sequence. The dmesg command reads the kernel ring buffer, which is a data structure that stores the most recent messages generated by the kernel. The dmesg command can also be used to display messages from the kernel that were output after the boot sequence, such as hardware events, driver messages, or system errors.
The dmesg command has various options to filter, format, or save the output. For example, dmesg -T will display human-readable timestamps for each message, and dmesg -w will display the messages in real time as they occur. References:
* 1: How to view all boot messages in Linux after booting? - Super User
* 2: dmesg(1) - Linux manual page
* 3: Kernel ring buffer - Wikipedia
NEW QUESTION # 71
Which of the following is a limitation of the cut command?
- A. Thecutcommand only works on ASCII text.
- B. Thecutcommand cannot reorder fields.
- C. Thecutcommand can only select output by field position.
- D. Thecutcommand cannot use different input and output delimiters.
Answer: B
Explanation:
Explanation
The cut command is used to extract selected portions of each line of a file or a stream. The -f option is used to specify the fields to be extracted, separated by commas. The -d option is used to specify the delimiter that separates the fields. The default delimiter is the tab character. The cut command can only select output by field position, not by field content. The cut command can also work on non-ASCII text, such as UTF-8 encoded text. The cut command can use different input and output delimiters, but only if the output delimiter is specified by the --output-delimiter option. The cut command cannot reorder fields, meaning that the output fields will always appear in the same order as the input fields. To reorder fields, other commands such as awk or sed can be used. References:
* LPI 101-500 Exam Objectives, Topic 103.7, Weight 4
* LPI Learning Materials, Chapter 3.7, Basic Scripting
* Web Search Results,
NEW QUESTION # 72
Which of the following apt-getsubcommands installs the newest versions of all currently installed packages?
- A. auto-update
- B. install
- C. dist-upgrade
- D. update
- E. full-upgrade
Answer: C
NEW QUESTION # 73
Which command must be entered before exiting vi to save the current file as filea.txt?
%s filea.txt
- A. :w filea.txt
- B. :save filea.txt
- C. :s filea.txt
- D.
- E. %w filea.txt
Answer: C
NEW QUESTION # 74
Which of the following commands changes the ownership of file.txt to the user dan and the group staff?
- A. chown dan/staff file.txt
- B. chown dan:staff file.txt
- C. chown dan -g staff file.txt
- D. chown -u dan -g staff file.txt
Answer: B
NEW QUESTION # 75
What is the difference between the i and a command of the vi editor?
- A. i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
- B. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
- C. i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
- D. i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
Answer: B
Explanation:
Explanation
The i and a commands are two of the most commonly used commands in the vi editor to enter the insert mode.
The insert mode allows the user to insert text into the file. The difference between the i and a commands is that the i command inserts text before the current cursor position, while the a command inserts text after the cursor position. For example, if the cursor is on the letter "e" in the word "editor", then pressing i will allow the user to insert text before the "e", while pressing a will allow the user to insert text after the "e". The user can exit the insert mode by pressing the Esc key, which will return to the command mode. References:
* Basic vi commands (cheat sheet)
* VI Editor with Commands in Linux/Unix Tutorial
* How to use Vi editor in Linux (with examples)
NEW QUESTION # 76
When redirecting the output of findto the xargscommand, what option to findis useful if the filenames contain spaces?
-rep-space
- A.
- B. -print0
- C. -ignore-space
- D. -printnul
- E. -nospace
Answer: A
NEW QUESTION # 77
When planning a partition scheme, which of the following directories could be considered for separate partitions? (Choose three.)
- A. /opt
- B. /home
- C. /etc
- D. /lib
- E. /var
Answer: B
Explanation:
Explanation
When planning a partition scheme, it is advisable to consider creating separate partitions for some directories that may contain large amounts of data, have different backup or security requirements, or benefit from being on different filesystems. Some of the common directories that could be considered for separate partitions are:
* /home: This directory contains the personal files and settings of the users. Creating a separate partition for /home can make it easier to backup, restore, or upgrade the system without affecting the user data. It can also improve security by allowing different mount options such as noexec or nosuid. Additionally, it can help to prevent the system from becoming unusable if the users fill up their disk space with personal files123.
* /var: This directory contains variable data such as logs, caches, spool files, databases, and web server content. Creating a separate partition for /var can prevent the system from crashing or becoming unresponsive if the /var partition fills up due to excessive logging or caching. It can also improve performance by allowing different filesystem options such as noatime or nodiratime. Furthermore, it can enhance security by isolating the data that may be modified by external sources such as web applications or mail servers124.
* /opt: This directory contains optional software packages that are not part of the standard distribution.
Creating a separate partition for /opt can make it easier to manage, backup, or remove these packages without affecting the rest of the system. It can also allow different filesystem types or features that may be required by some of the software installed in /opt125.
Other directories that could be considered for separate partitions are /boot, /tmp, /usr, and /srv, depending on the system requirements and preferences12 . References:
* Linux Partitioning Recommendations | Average Linux User
* Linux Disk Partitioning Schemes - Land of Linux
* C.3. Recommended Partitioning Scheme - Debian
NEW QUESTION # 78
A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?
- A. find /etc/debian_version -dpkg
- B. dpkg -S /etc/debian_version
- C. apt-get search /etc/debian_version
- D. apt -r /etc/debian_version
- E. apt-file /etc/debian_version
Answer: A
NEW QUESTION # 79
Which daemon handles power management events on a Linux system?
- A. inetd
- B. pwrmgntd
- C. acpid
- D. psd
- E. batteryd
Answer: C
Explanation:
Explanation
The daemon that handles power management events on a Linux system is acpid. A daemon is a background process that runs continuously and performs certain tasks without user intervention. The acpid daemon listens for power management related events, such as switching between AC and battery power on a laptop, pressing the power button, closing the lid, etc., and executes various commands in response. The acpid daemon can be configured by editing the files in /etc/acpi/events and /etc/acpi/actions directories, or by using a graphical tool like gnome-power-manager or xfce4-power-manager. The acpid daemon is part of the 101.1 Determine and configure hardware settings topic of the LPI Linux Essentials certification program12. References:
* Linux Essentials - Linux Professional Institute Certification Programs1
* Exam 101 Objectives - Linux Professional Institute2
* Power management - ArchWiki2
* 9.12. Power Management: Advanced Configuration and Power Interface (ACPI)
NEW QUESTION # 80
......
Best updated resource for 101-500 Online Practice Exam: https://www.pass4training.com/101-500-pass-exam-training.html
Realistic Practice 101-500 LPIC-1 Exam 101, Part 1 of 2, version 5.0 Exam Braindumps: https://drive.google.com/open?id=13S47zqNIOduKhUvpvIcNrycfcR2oMNXg

