
2024 Latest 101-500 dumps - Instant Download PDF
Updated Verified 101-500 Downloadable Printable Exam Dumps
NEW QUESTION # 114
Which of the following commands displays the manual page command from section 1?
- A. man command@1
- B. man command(1)
- C. man 1.command
- D. man 1 command
- E. man -s 1 command
Answer: D
NEW QUESTION # 115
Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?
- A. ls >> data
- B. ls > data
- C. ls 3> data
- D. ls >& data
Answer: B
Explanation:
Explanation
The command line that will create or, in case it already exists, overwrite a file called data with the output of ls is ls > data. The > character is a redirection operator that redirects the standard output (STDOUT) of a command to a file. If the file does not exist, it will be created. If the file already exists, it will be overwritten.
The 3> character is not a valid redirection operator. The >& character is a redirection operator that redirects both standard output (STDOUT) and standard error (STDERR) of a command to a file. The >> character is a redirection operator that appends the standard output (STDOUT) of a command to a file, without overwriting the existing file contents. References: LPI Exam 101 Detailed Objectives, Topic 103: GNU and Unix Commands, Weight: 25, Objective 103.3: Perform basic file management, Redirection
NEW QUESTION # 116
Which of the following commands will print the last 10 lines of a text file to the standard output?
- A. head -n 10 filename
- B. tail -n 10 filename
- C. cat -n 10 filename
- D. dump -n 10 filename
Answer: B
Explanation:
Explanation
The tail command prints the last part of a file to the standard output. The -n option specifies the number of lines to print. Therefore, tail -n 10 filename will print the last 10 lines of the file named filename. The other commands are either invalid or do not perform the desired task. The cat command concatenates files and prints them to the standard output, but it does not have a -n option. The dump command is used to backup filesystems, not to print files. The head command prints the first part of a file, not the last part. References:
* LPIC-1 Exam 101 Objectives, Topic 103: GNU and Unix Commands, 103.3 Perform basic file management
* LPIC-1 Linux Administrator 101-500 Exam FAQ, LPIC-1 Exam 101 Objectives, GNU and Unix Commands (Total Weight: 25)
NEW QUESTION # 117
Which of the following files exist in a standard GRUB 2 installation? (Choose two.)
- A. /boot/grub/stages/stage0
- B. /boot/grub/fstab
- C. /boot/grub/i386-pc/1vm.mod
- D. /boot/grub/grub.cfg
- E. /boot/grub/linux/vmlinuz
Answer: C,D
Explanation:
Explanation
NEW QUESTION # 118
When running the command
sed -e "s/a/b/" /tmp/file >/tmp/file
While /tmp/file contains data, why is /tmp/file empty afterwards?
- A. The command sed did not match anything in that file therefore the output is empty.
- B. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.
- C. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens itfor reading.
- D. Redirection for shell commands do not work using the > character. It only works using the | character instead.
Answer: C
NEW QUESTION # 119
In compliance with the FHS, in which of the directories are man pages found?
- A. /usr/doc/
- B. /var/pkg/man
- C. /opt/man
- D. /var/man
- E. /usr/share/man
Answer: E
Explanation:
Explanation
According to the Filesystem Hierarchy Standard (FHS), the directory /usr/share/man contains manual pages for user commands, system calls, library functions, and other documentation1. The other directories are either non-standard, deprecated, or used for different purposes. For example, /opt/man is used for manual pages for add-on application software packages1, /usr/doc/ is an old location for documentation files that is no longer used2, /var/pkg/man and /var/man are not defined by the FHS. References:
* [LPI Linux Essentials - 1.6 Basic File Editing]
* [LPI Linux Essentials - 1.7 Personalize and/or Localize Your Linux System]
* [LPI Linux Essentials - 1.8 Basic Security and File Permissions]
NEW QUESTION # 120
How many fields are in a syntactically correct line of /etc/fstab?
- A. 0
- B. 1
- C. 2
- D. 3
- E. 4
Answer: C
NEW QUESTION # 121
In which directory must definition files be placed to add additional repositories to yum?
Answer:
Explanation:
/etc/yum.repos.d, /etc/yum.repos.d/, yum.repos.d, yum.repos.d/
NEW QUESTION # 122
What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?
- A. The execute flag is not set for the owner. Therefore, the SetUID flag is ignored.
- B. The command will be executed with the effective rights of the group instead of the owner.
- C. The command is SetUID and it will be executed with the effective rights of the owner.
- D. The command will be executed with the effective rights of the owner and group.
Answer: A
Explanation:
Explanation
The permissions -rwSr-xr-x mean that the file is readable and writable by the owner, readable and executable by the group, and readable and executable by others. The S in the owner's permissions indicates that the file has the SetUID bit set, which means that when the file is executed as a command, it will run with the effective user ID of the file owner, rather than the user who executed it. This allows the command to perform privileged operations that the user normally cannot do. For example, the /bin/passwd commandhas the SetUID bit set, so that it can modify the /etc/shadow file, which is only writable by root. References: LPI Linux Administrator, File Permissions and Attributes
NEW QUESTION # 123
Which of the following commands installs all packages with a name ending with the string foo?
- A. zypper install "*foo"
- B. zypper add ".*foo"
- C. zypper force "foo*"
- D. zypper get "*foo"
- E. zypper update "foo?"
Answer: A
Explanation:
Explanation
The command that installs all packages with a name ending with the string foo is zypper install "*foo". The zypper command is the command line interface of the ZYpp package manager for SUSE Linux. The install (in) subcommand is used to install packages with specified capabilities or RPM files with specified location.
The argument "*foo" is a glob pattern that matches any package name that ends with foo. For example, zypper install "foo" will install packages like barfoo, bazfoo, and foo itself. The other commands are either invalid or do not perform the desired task. The zypper get, zypper update, zypper force, and zypper add subcommands do not exist. The "foo?" and "foo" arguments are also invalid glob patterns, as they do not match the end of the package name. The ".*foo" argument is a valid glob pattern, but it matches any package name that contains foo, not just the ones that end with foo. References:
* Zypper package manager - SUSE Documentation1
* zypper(8) [suse man page] - The UNIX and Linux Forums2
* 45 Zypper Commands to Manage 'Suse' Linux Package Management - Tecmint
NEW QUESTION # 124
When removing a package on a system using dpkg package management, which dpkgoption ensures configuration files are removed as well?
--clean
- A. --vacuum
- B. --remove
- C. --purge
- D.
- E. --declare
Answer: A
NEW QUESTION # 125
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 changes to files in /proc/ are immediately recognized by the kernel.
- C. All files within /proc/ are read-only and their contents cannot be changed.
- D. All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.
Answer: B
NEW QUESTION # 126
In compliance with the FHS, in which of the following directories are documentation files found?
- A. /usr/local/share/documentation
- B. /etc/share/doc
- C. /var/share/doc
- D. /usr/share/doc
- E. /usr/share/documentation
Answer: C
NEW QUESTION # 127
During a system boot cycle, what is the program that is run after the BIOS completes its tasks?
- A. The kernel
- B. The inetd program
- C. The init program
- D. The bootloader
Answer: D
Explanation:
Explanation
The program that is run after the BIOS completes its tasks is the bootloader12. The bootloader is a small program that loads the operating system into memory and executes it. The bootloader can be located in the Master Boot Record (MBR) of the first hard disk or the boot sector of a partition for BIOS systems, or in an
.efi file on the EFI System Partition for UEFI systems12. The bootloader can also display a menu to allow the user to choose from different operating systems or kernel versions to boot12.
The other options in the question are not correct because:
* B. The inetd program: This is a program that listens for incoming network connections and launches the appropriate service for them. It is not involved in the boot process3.
* C. The init program: This is a program that is executed by the kernel as the first user-space process. It is responsible for starting and managing other processes and services. It is not run by the BIOS.
* D. The kernel: This is the core of the operating system that controls everything in the system. It is
* loaded and executed by the bootloader, not by the BIOS.
References:
1: The Linux Booting Process - 6 Steps Described in Detail - freeCodeCamp.org 2: Guide to the Boot Process of a Linux System - Baeldung 3: [inetd - Wikipedia] : [init - Wikipedia] : [Linux kernel - Wikipedia]
NEW QUESTION # 128
Consider the following directory:
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)
- A. chmod g+s sales
- B. chown --persistent *.sales sales
- C. chmod 2775 sales
- D. chgrp -p sales sales
- E. setpol -R newgroup=sales sales
Answer: C,D
NEW QUESTION # 129
What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: D
Explanation:
Explanation
The maximum niceness value that a regular user can assign to a process with the nice command when executing a new process is 19. The niceness value is a user-space value that controls the priority of a process.
The lower the niceness value, the higher the priority, and vice versa. The niceness value range is -20 to +19, where -20 is the highest priority and +19 is the lowest priority. The default niceness value is 0. The nice command can be used to run a new process with a modified niceness value. The syntax is: nice -n value command, where value is the niceness value and command is the process to run. For example, nice -n 10 sleep
60 will run the sleep command with a niceness value of 10 for 60 seconds. However, regular users can only increase the niceness value of their processes, not decrease it. This means that they can only lower the priority of their processes, not raise it. The minimum niceness value that a regular user can assign is 0, and the maximum is 19. Only the root user can assign a negative niceness value, which means raising the priority of a process. For example, nice -n -10 sleep 60 will run the sleep command with a niceness value of -10 for 60 seconds, but only if the user is root. The other options are not correct because:
* A. 9 is not the maximum niceness value that a regular user can assign, but a valid niceness value within the range.
* C. 49 is not a valid niceness value, as it exceeds the maximum of 19.
* D. 99 is not a valid niceness value, as it exceeds the maximum of 19.
NEW QUESTION # 130
Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time?
(Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
dpkg-reconfigure
NEW QUESTION # 131
Which of the following command sets the Bash variable named TEST with the content FOO?
- A. TEST="FOO"
- B. set TEST="FOO"
- C. TEST = "FOO"
- D. var TEST="FOO"
Answer: A
NEW QUESTION # 132
After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem.
Which of the following describes the resulting situation?
- A. foo would be removed while bar would remain accessible.
- B. Both foo and bar would remain accessible.
- C. The user is prompted whether bar should be removed, too.
- D. foo and bar would both be removed.
- E. foo would be removed. bar would still exist but would be unusable.
Answer: A
NEW QUESTION # 133
What is contained on the EFI System Partition?
- A. The default swap space file
- B. The Linux default shell binaries
- C. The Linux root file system
- D. The first stage boot loader
- E. The user home directories
Answer: D
Explanation:
Explanation/Reference:
NEW QUESTION # 134
......
How to study the LPIC-1 Linux Administrator , 101-500 Exam
Linux is difficult because of the command line interface. With a GUI, like Windows, you can click your way around randomly. You might get some popup help, or have little “information” icons and so on. So, it is quite important to go through the complete study material and practice the commands, as any of the commands can pop up as a question in certification exam.
There are many ways to prepare for 101-500 Exam. Aspirants can opt for online PDF's available on Linux official website and can refer online videos too .
The knowledge earned through different study materials should be tested on high quality test engine, as of DumpsMaterials test platform and exam dumps as they follows the standards of real exam .
The Ultimate Lpi 101-500 Dumps PDF Review: https://www.dumpsmaterials.com/101-500-real-torrent.html
Achieve The Utmost Performance In 101-500 Exam Pass Guaranteed: https://drive.google.com/open?id=1oMXIt1U1ABkCu68y0GOPELT9VbC1Sgph
