
Valid 101-500 Exam Q&A PDF 101-500 Dump is Ready (Updated 246 Questions)
Exam Questions and Answers for 101-500 Study Guide
Lpi 101-500 exam is a computer-based test that consists of 60 multiple-choice and fill-in-the-blank questions. 101-500 exam duration is 90 minutes, and the passing score is 500 out of 800. 101-500 exam is available in multiple languages, including English, German, Spanish, and Portuguese.
Lpi 101-500 Exam is an entry-level certification exam that is designed for individuals who are new to Linux operating system administration. 101-500 exam is also ideal for those who are seeking to switch their career to Linux administration. 101-500 exam is designed to validate the skills and knowledge of candidates in the areas of Linux operating system administration. 101-500 exam is also designed to test the candidate's ability to perform basic administrative tasks such as managing users and groups, managing files and directories, and configuring basic networking.
NEW QUESTION # 29
Which of the following environment variables overrides or extends the list of directories holding shared libraries?
- A. LD_LOAD_PATH
- B. LD_LIBRARY_PATH
- C. LD_RUN_PATH
- D. LD_SHARE_PATH
- E. LD_LIB_PATH
Answer: B
Explanation:
Explanation
The environment variable that overrides or extends the list of directories holding shared libraries is LD_LIBRARY_PATH. This variable is used to specify a colon-separated list of directories where the dynamic linker should look for shared libraries when loading a program1. The directories in LD_LIBRARY_PATH are searched before the default directories, such as /lib and /usr/lib, or the directories specified in/etc/ld.so.conf or the executable's rpath1. This variable can be useful for testing or debugging purposes, or for running programs that require a specific version of a library that is not installed in the system1.
The other options are incorrect for the following reasons:
* LD_LOAD_PATH. This is not a standard environment variable for shared libraries. It may be confused with LD_PRELOAD, which is a variable that allows the user to specify one or more shared libraries that should be loaded before any other library, even the C library2. This variable can be used to override or modify the behavior of certain functions or symbols in the libraries2.
* LD_LIB_PATH. This is not a standard environment variable for shared libraries. It may be confused with LIBPATH, which is a variable that is used on some Unix variants, such as AIX, to specify the
* search path for shared libraries3. On Linux, this variable has no effect4.
* LD_SHARE_PATH. This is not a standard environment variable for shared libraries. It may be confused with LD_RUN_PATH, which is a variable that allows the user to specify a list of directories that should be embedded in the executable as the rpath5. The rpath is a attribute that tells the dynamiclinker where to look for shared libraries at run time5. Unlike LD_LIBRARY_PATH, LD_RUN_PATH is only effective at link time, not at run time5.
* LD_RUN_PATH. This is not an environment variable that overrides or extends the list of directories holding shared libraries, but rather one that sets the rpath of the executable at link time. See the explanation for LD_SHARE_PATH above.
References:
* How to set the environmental variable LD_LIBRARY_PATH in Linux
* LD_PRELOAD - The secret of code injection into a running process without ptrace
* LIBPATH - Wikipedia
* linux - What is the difference between LD_LIBRARY_PATH and -L at link time? - Stack Overflow
* ld-linux(8) - Linux manual page
NEW QUESTION # 30
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. find /etc/debian_version -dpkg
- D.
- E. apt -r /etc/debian_version
Answer: A
NEW QUESTION # 31
Which of the following is a limitation of the cut command?
- A. Thecutcommand only works on ASCIItext.
- 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
NEW QUESTION # 32
In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?
- A. By specifying the number right in front of a command such as 4l or 2yj.
- B. By selecting all affected lines using the shift and cursor keys before applying the command.
- C. By using the command :repeat followed by the number and the command.
- D. By issuing a command such as :set repetition=4 which repeats every subsequentcommand 4 times.
Answer: A
NEW QUESTION # 33
What is true regarding UEFI firmware? (Choose two.)
- A. It is stored in a special area within the GPT metadata
- B. It stores its entire configuration on the /boot/ partition
- C. It can read and interpret partition tables
- D. It is loaded from a fixed boot disk position
- E. It can use and read certain file systems
Answer: A,E
NEW QUESTION # 34
Which of the following commands displays the manual page command from section 1?
- A. man -s 1 command
- B. man 1 command
- C. man command@1
- D. man command(1)
- E. man 1.command
Answer: B
NEW QUESTION # 35
Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)
- A. chmod 2775 /tmp
- B. chmod +s /tmp
- C. chmod +t /tmp
- D. chmod 1775 /tmp
- E. chmod 4775 /tmp
Answer: C,D
Explanation:
Explanation
The sticky bit is a special permission bit that can be set for directories. It prevents users from deleting or renaming files in the directory that they do not own, even if they have write permission on the directory. This is useful for shared directories like /tmp, where users can create temporary files but not interfere with other users' files12. The command chmod +t /tmp sets the sticky bit for the directory /tmp by adding the letter t to the end of the permission string. The command chmod 1775 /tmp also sets the sticky bit for the directory /tmp by adding the number 1 to the beginning of the octal mode. The number 1 represents the sticky bit in the octal notation34. The commands chmod +s /tmp, chmod 4775 /tmp, and chmod 2775 /tmp do not set the sticky bit, but rather the setuid or setgid bits, which are different special permission bits that affect how programs are executed5. References: 1: Sticky bit - Wikipedia 2: Linux Sticky Bit Concept Explained with Examples 3:
chmod(1) - Linux man page 4: Understanding Linux File Permissions 5: Setuid and Setgid on Linux - GeeksforGeeks
NEW QUESTION # 36
Which of the following file permissions belong to a symbolic link?
- A. srwxrwxrwx
- B. +rwxrwxrwx
- C. -rwxrwxrwx
- D. lrwxrwxrwx
Answer: D
Explanation:
Explanation
The correct file permissions that belong to a symbolic link are lrwxrwxrwx. This is because a symbolic link is a special file that points to another file or directory. The first character of the file permissions indicates the file type. The letter l means that the file is a symbolic link. The other letters r, w, and x represent the read, write, and execute permissions for the owner, group, and others classes. However, the permissions of the symbolic link are not used for accessing the file or directory that it points to. The permissions of the target file or directory are used instead. Therefore, the permissions of the symbolic link are usually set to rwx for all classes, meaning that anyone can read, write, or execute the link. The other options are incorrect because they do not indicate the file type of a symbolic link. Option A is wrong because the first character - means that the file is a regular file, not a symbolic link. Option B is wrong because the first character + is not a valid file type indicator. Option D is wrong because the first character s means that the file is a socket, not a symbolic link.
References:
* symlink - Change permissions for a symbolic link - Unix & Linux Stack Exchange
* linux - How do file permissions apply to symlinks? - Super User
* Is it possible to change the permissions for the symbolic link?
* Permission through symbolic link - Unix & Linux Stack Exchange
* How to change permissions for a symbolic link under Linux/UNIX
NEW QUESTION # 37
What is the purpose of the Bash built-in export command?
- A. It shares NFS partitions for use by other systems on the network.
- B. It runs a command as a process in a subshell.
- C. It makes the command history available to subshells.
- D. It sets up environment variables for applications.
- E. It allows disks to be mounted remotely.
Answer: D
NEW QUESTION # 38
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
- E. 4
Answer: E
NEW QUESTION # 39
When is the content of the kernel ring buffer reset? (Choose two.)
- A. When the ring buffer is explicitly reset using the command dmesg --clear
- B. When the kernel loads a previously unloaded kernel module
- C. When the system is shut down or rebooted
- D. When a configurable amount of time, 15 minutes by default, has passed
- E. When the ring buffer is read using dmesg without any additional parameters
Answer: A,C
Explanation:
Explanation
The content of the kernel ring buffer is reset when the ring buffer is explicitly reset using the command dmesg
--clear or when the system is shut down or rebooted. The kernel ring buffer is a portion of the physical memory that holds the kernel's log messages. It has a fixed size, which means once the buffer is full, the older logs records are overwritten. The dmesg command-line utility is used to print and control the kernel ring buffer in Linux and other Unix-like operating systems1. The dmesg --clear option clears the ring buffer's contents, which can be useful for debugging purposes or to free up some memory2. The systemshutdown or reboot also clears the ring buffer's contents, as the physical memory is reset and the kernel is reloaded3.
The other options are false or irrelevant. The ring buffer is not reset when it is read using dmesg without any additional parameters, as this option only displays the current contents of the buffer without modifying them2. The ring buffer is not reset when a configurable amount of time, 15 minutes by default, has passed, as there is no such time limit for the buffer's persistence4. The ring buffer is not reset when the kernel loads a previously unloaded kernel module, as this action only affects the kernel's functionality and not its log messages5. References:
* Dmesg Command in Linux | Linuxize1
* dmesg(1) - Linux manual page2
* Linux Dmesg Command Help and Examples - Computer Hope3
* Lockless Ring Buffer Design - The Linux Kernel documentation4
* Linux Kernel Module Management 101 - Linux.com5
NEW QUESTION # 40
Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?
- A. u (lowercase)
- B. U (uppercase)
- C. p (lowercase)
- D. i (lowercase)
- E. P (uppercase)
Answer: C
Explanation:
Explanation
The p command in vi inserts the content of the buffer below the current line. The buffer is where the deleted or yanked text is stored temporarily. The P command inserts the buffer above the current line. The i command enters the insert mode before the cursor position. The U command restores the current line to its original state.
The u command undoes the last change made to the file. References:
* [LPI Linux Essentials - 1.3 Basic Editing]
* [LPI Linux Essentials - 1.4 I/O Redirection]
* [LPI Linux Essentials - 1.5 Manage Simple Partitions and Filesystems]
NEW QUESTION # 41
Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)
Answer:
Explanation:
update, upgrade
NEW QUESTION # 42
When in Normal mode in vi, which character can be used to begin a reverse search of the text?
r
- A. s
- B.
- C. F
- D. /
- E. ?
Answer: A
NEW QUESTION # 43
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: D
NEW QUESTION # 44
How is a symbolic link called bar.conf pointing to foo.conf created?
- A. ln -s bar.conf foo.conf
- B. ln bar.conffoo.conf
- C. ln -s foo.conf bar.conf
- D. ln foo.conf bar.conf
Answer: C
NEW QUESTION # 45
During a system boot cycle, what program is executed after the BIOS completes its tasks?
- A. The bootloader
- B. The inetd program
- C. The kernel
- D. The init program
Answer: A
Explanation:
Explanation
The bootloader is a program that is executed by the BIOS after it completes its tasks of initializing the hardware and performing the POST (Power-On Self Test). The bootloader is responsible for loading the kernel and other necessary files into memory and passing control to the kernel. The bootloader can be either installed in the Master Boot Record (MBR) of the disk or in a separate partition. Some examples of bootloaders are GRUB, LILO, and SYSLINUX. References: LPI Linux Essentials - 1.101.1, LPI Linux Administrator - 102.1
NEW QUESTION # 46
The command dbmaint & was used to run dbmaint in the background. However, dbmaint is terminated after logging out of the system. Which alternative dbmaint invocation lets dbmaint continue to run even when the user running the program logs out?
- A. bg dbmaint
- B. job -b dmaint
- C. nohup dbmaint &
- D. wait dbmaint
- E. dbmaint &>/dev/pts/null
Answer: A
NEW QUESTION # 47
What does the ? symbol within regular expressions represent?
- A. Match the preceding qualifier zero or more times.
- B. Match the preceding qualifier one or more times.
- C. Match a literal ?character.
- D. Match the preceding qualifier zero or one times.
Answer: D
NEW QUESTION # 48
Which of the following commands show how the shell handles a specific command?
where
- A. stat
- B. fileinfo
- C. type
- D. case
- E.
Answer: A
NEW QUESTION # 49
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 # 50
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. setpol -R newgroup=sales sales
- C. chown --persistent *.sales sales
- D. chgrp -p sales sales
- E. chmod 2775 sales
Answer: D,E
NEW QUESTION # 51
In order to display all currently mounted filesystems, which of the following commands could be used? (Choose two.) cat /proc/self/mounts
- A. lsmounts
- B. cat /proc/filesystems
- C.
- D. mount
- E. free
Answer: B,E
NEW QUESTION # 52
What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?
- A. The command will be executed with the effective rights of the owner and group.
- B. The command will be executed with the effective rights of the group instead of the owner.
- C. The execute flag is not set for the owner. Therefore, the SetUID flag is ignored.
- D. The command is SetUID and it will be executed with the effective rights of the owner.
Answer: C
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 # 53
Which of the following commands displays the output of the foo command on the screen and also writes it to a file called /tmp/foodata?
- A. foo > stdout >> /tmp/foodata
- B. foo > /tmp/foodata
- C. foo | tee /tmp/foodata
- D. foo | less /tmp/foodata
- E. foo | cp /tmp/foodata
Answer: C
Explanation:
Explanation
This command will display the output of the foo command on the screen and also write it to a file called
/tmp/foodata. The syntax of the command is:
foo | tee [options] [file]
The foo command is any command that produces some output. The | symbol is a pipe operator that redirects the standard output of one command to the standard input of another command. The tee command reads from the standard input and writes to both the standard output and one or more files. The options can modify the behavior of the tee command, such as appending to the file instead of overwriting it, or ignoring interrupt signals. The file is the name of the file to which the output is written. If no file is given, the tee command will only write to the standard output.
Therefore, the command foo | tee /tmp/foodata will run the foo command, pipe its output to the tee command, which will display the output on the screen and write it to the file /tmp/foodata.
The other commands are incorrect for the following reasons:
* A, foo | less /tmp/foodata: This command will not write the output of the foo command to a file, but it will display the output of the foo command on the screen in a pager. The less command is a program that allows the user to view and scroll through a file or the output of a command. The syntax of the command is:
foo | less [options] [file]
The foo command is any command that produces some output. The | symbol is a pipe operator that redirects the standard output of one command to the standard input of another command. The less command reads from the standard input or a file and displays it on the screen in a pager. The options can modify the behavior of the less command, such as setting the number of lines per screen, or searching for a pattern. The file is the name of the file to be viewed. If no file is given, the less command will read from the standard input.
Therefore, the command foo | less /tmp/foodata will run the foo command, pipe its output to the less command, which will display the output on the screen in a pager. However, the /tmp/foodata argument will be ignored by the less command, because it will read from the standard input instead of the file. The command will not write anything to the file /tmp/foodata.
* B, foo | cp /tmp/foodata: This command will not work as expected, because it has several errors. First, the cp command is not a valid command to write the output of a command to a file. The cp command is used to copy files or directories from one location to another. The syntax of the command is:
cp [options] source destination
The options can modify the behavior of the cp command, such as preserving the attributes of the files, or creating backups of the existing files. The source is the name of the file or directory to be copied. The destination is the name of the file or directory where the source is copied to.
Second, the pipe operator is not a valid way to redirect the output of a command to the cp command. The pipe operator redirects the standard output of one command to the standard input of another command. However, the cp command does not read from the standard input, but from the source argument. Therefore, the command foo | cp /tmp/foodata will run the foo command, pipe its output to the cp command, which will ignore the standard input and report an error for missing the destination argument. The command will not write anything to the file /tmp/foodata.
* C, foo > /tmp/foodata: This command will not display the output of the foo command on the screen, but it will write it to a file called /tmp/foodata. The > symbol is a redirection operator that redirects the standard output of a command to a file or device, overwriting any existing content. The syntax of the command is:
foo > file
The foo command is any command that produces some output. The > symbol redirects the standard output of the foo command to the file. The file is the name of the file to which the output is written.
Therefore, the command foo > /tmp/foodata will run the foo command, redirect its output to the file
/tmp/foodata, and overwrite any previous content. The command will not display anything on the screen.
* E, foo > stdout >> /tmp/foodata: This command will not work as expected, because it has several errors.
First, the stdout argument is not a valid file name or device name. The stdout is an abbreviation for the standard output, which is a stream that a program uses to write its output. However, the stdout is not a file or device that can be used as a destination for the redirection operator. Second, the >> symbol is a redirection operator that redirects the standard output of a command to a file or device, appending to any existing content. The syntax of the command is:
foo >> file
The foo command is any command that produces some output. The >> symbol redirects the standard output of the foo command to the file. The file is the name of the file to which the output is appended.
Therefore, the command foo > stdout >> /tmp/foodata will run the foo command, redirect its output to the stdout argument, which will cause an error, and then redirect its output again to the file /tmp/foodata, which will append the output to the file. The command will not display anything on the screen.
References:
* Linux Tee Command with Examples | Linuxize
* tee command in Linux with examples - GeeksforGeeks
* Linux tee command explained for beginners (6 examples) - HowtoForge
* Command Options and Examples of Tee Command in Linux - UbuntuPIT
* Linux tee Command Explained for Beginners (6 Examples) - Linux Handbook.
NEW QUESTION # 54
......
Lpi 101-500 exam is intended for individuals who have basic knowledge of Linux and wish to acquire a professional certification in Linux administration. It covers a wide range of topics, including system architecture, Linux installation and package management, GNU and Unix commands, devices, and file systems. 101-500 exam also tests the candidate's knowledge of Linux networking fundamentals, security, and troubleshooting. Passing 101-500 exam proves that the candidate has the essential skills needed to perform basic Linux administration tasks and is a prerequisite for taking the second part of the LPIC-1 certification exam.
Certification dumps - LPIC Level1 101-500 guides - 100% valid: https://braindumps2go.dumpexam.com/101-500-valid-torrent.html
