
[Mar-2025] Lpi 101-500 Dumps – Reduce Your Chance of Failure in 101-500 Exam
To help you achieve your ultimate goal, we suggest the actual Lpi 101-500 dumps for your LPIC-1 Exam 101, Part 1 of 2, version 5.0 exam preparation to use as your guideline.
NEW QUESTION # 173
In the vi editor, which of the following commands will copy the current line into the vi buffer?
- A. 1c
- B. yy
- C. cc
- D. 1y
- E. c
Answer: B
NEW QUESTION # 174
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 running the command touch on the old path.
- B. By creating a symbolic link from the old to the new path of the data.
- C. By creating an ACL redirection from the old to the new path of the data.
- D. By creatinga hard link from the old to the new path of the data.
- E. By mounting the new filesystem on the original path of the data.
Answer: B,E
NEW QUESTION # 175
A user accidentally created the subdirectory \dirin his home directory. Which of the following commands will remote that directory?
rmdir ~/\\dir
- A. rmdir ~/\dir
- B.
- C. rmdir '~/\dir'
- D. rmdir "~/\dir"
- E. rmdir ~/'dir'
Answer: C
NEW QUESTION # 176
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
- A. sed 's/bob/Bob/g' letter > newletter
- B. sed '/bob/Bob' letter > newletter
- C. sed 's/bob/Bob' letter > newletter
- D. sed 's/bob, Bob/' letter > newletter
- E. sed s/bob/Bob/ letter < newletter
Answer: A
NEW QUESTION # 177
Which of the following commands kills the process with the PID 123 but allows the process to
"clean up" before exiting?
- A. kill -PIPE 123
- B. kill -TERM 123
- C. kill -KILL 123
- D. kill -STOP 123
Answer: B
NEW QUESTION # 178
Which chown command will change the ownership to dave and the group to staff on a file named data.txt?
- A. chown --user dave --group staff data.txt
- B. chown dave/staff data.txt
- C. chown -u dave -g staff data.txt
- D. chown dave:staff data.txt
Answer: D
NEW QUESTION # 179
An administrator has issued the following command:
grub-install --root-directory=/custom-grub /dev/sda
In which directory will new configuration files be found? (Provide the full directory path only without the filename)
Answer:
Explanation:
/custom-grub/boot/grub/, /custom-grub/boot/grub
NEW QUESTION # 180
What is the purpose of the xargscommand?
- A. It asks a question, graphically, and returns the answer to the shell.
- B. It reads standard input and builds up commands to execute.
- C. It passes arguments to an X server.
- D. It allows specifying long options (like --help) for commands that normally only accept short options (like - h)
- E. It repeats the execution of a command using different parameters for each invocation.
Answer: B
NEW QUESTION # 181
Which of the following files exist in a standard GRUB 2 installation? (Choose two.)
- A. /boot/grub/grub.cfg
- B. /boot/grub/stages/stage0
- C. /boot/grub/fstab
- D. /boot/grub/linux/vmlinuz
- E. /boot/grub/i386-pc/1vm.mod
Answer: A,E
Explanation:
Explanation
The files that exist in a standard GRUB 2 installation are /boot/grub/i386-pc/1vm.mod and
/boot/grub/grub.cfg. The /boot/grub/i386-pc/1vm.mod file is a GRUB 2 module that provides support forthe
1vm command, which allows loading a virtual machine image from a disk1. The /boot/grub/grub.cfg file is the main configuration file for GRUB 2, which contains the menu entries and options for the bootloader2. The other files are either non-existent or do not belong to GRUB 2. The /boot/grub/stages/stage0 file ispart of the GRUB legacy bootloader, which used a different architecture and naming scheme than GRUB 23. The
/boot/grub/fstab file is not a valid file name, as fstab is the name of the file system table file that isusually located in /etc directory4. The /boot/grub/linux/vmlinuz file is also not a valid file name, as vmlinuz is the name of the compressed Linux kernel image that is usually located in /boot directory5. References:
* GRUB 2 bootloader - Full tutorial - Dedoimedo1
* Grub2/Installing - Community Help Wiki - Official Ubuntu Documentation2
* GRUB bootloader - Full tutorial - Dedoimedo3
* fstab(5) - Linux manual page4
* vmlinuz(5) - Linux manual page5
NEW QUESTION # 182
Which of the following commands will load a kernel module along with any required dependency modules?
- A. module_install
- B. depmod
- C. insmod
- D. loadmod
- E. modprobe
Answer: E
Explanation:
Explanation
The modprobe command is used to add or remove modules from the Linux kernel. The modprobe command can automatically resolve and load the dependencies of a module, which are the other modules that the module depends on. The modprobe command reads the modules.dep file, which is generated by the depmod command, to determine the dependencies of a module. The syntax of the modprobe command is:
modprobe [options] module [module parameters]
The module is the name of the module to be loaded or removed. The module parameters are optional arguments that can modify the behavior of the module. The options are optional, and they can modify the behavior of the modprobe command, such as displaying the dependencies, listing the modules, or specifying the configuration file.
For example, to load the e1000e module, which is a driver for Intel Gigabit Ethernet adapters, along with any required dependency modules, use the following command:
modprobe e1000e
This command will load the e1000e module and any other modules that it depends on, such as the crc32c module. You can verify the loaded modules by using the lsmod command, which lists the modules and their dependencies, sizes, and usage counts.
The other options are not correct because:
* A. depmod: This command is used to generate the modules.dep file, which contains the dependency information for the modules. The depmod command does not load or remove any modules, but it prepares the modules.dep file for the modprobe command to use. The depmod command is usually run automatically when a new kernel or module is installed, and it does not need to be run manually by the user.
* B. insmod: This command is used to insert a single module into the kernel. The insmod command does not resolve or load any dependencies of the module, and it requires the full path to the module file as an argument. The insmod command is a low-level command that is rarely used by the user, and it is usually invoked by the modprobe command internally.
* D. module_install: This command does not exist in the Linux system. There is no such command as module_install in the Linux documentation or the man pages.
* E. loadmod: This command does not exist in the Linux system. There is no such command as loadmod in the Linux documentation or the man pages.
References:
* modprobe(8) - Linux manual page
* How to Load and Unload Kernel Modules in Linux - Linux Handbook
* Linux Kernel Module Programming Guide - TLDP
NEW QUESTION # 183
From a Bash shell, which of the following commands directly execute the instructions from the file /usr/ local/bin/runme.shwithout starting a subshell? (Choose two.)
- A. run /usr/local/bin/runme.sh
- B. /usr/local/bin/runme.sh
- C. source /usr/local/bin/runme.sh
- D. /bin/bash /usr/local/bin/runme.sh
- E. /usr/local/bin/runme.sh
Answer: B,C
Explanation:
Explanation/Reference:
NEW QUESTION # 184
Which command will display messages from the kernel that were output during the normal boot sequence?
Answer:
Explanation:
dmesg, /bin/dmesg
NEW QUESTION # 185
Which of the following options must be passed to a filesystem's entry in /etc/fstab in order to mount the file system without root privileges?
- A. user
- B. noauto
- C. norestrict
- D. auto
Answer: A
NEW QUESTION # 186
Which of the following commands can be used to download the RPM package kernel without installing it?
- A. rpmdownload kernel
- B. yum download --no-install kernel
- C. rpm --download --package kernel
- D. yumdownloader kernel
Answer: D
NEW QUESTION # 187
What command will generate a list of user names from /etc/passwd along with their login shell?
- A. chop -c 1,7 /etc/passwd
- B. colrm 1,7 /etc/passwd
- C. cut -d: -f1,7 /etc/passwd
- D. column -s : 1,7 /etc/passwd
Answer: C
Explanation:
Explanation
The cut command is used to extract sections from each line of a file or input stream. The -d option specifies the delimiter that separates the fields in each line. The -f option specifies the fields to select. In this case, the delimiter is a colon (:) and the fields are 1 and 7. The first field is the user name and the seventh field is the login shell. Therefore, the cut command with these options will generate a list of user names and their login shells from /etc/passwd. References:
* Linux cut Command Explained with 6 Examples
* How to Use the Linux cut Command
* cut command in Linux with examples
NEW QUESTION # 188
......
Accurate & Verified Answers As Seen in the Real Exam here: https://itcert-online.newpassleader.com/Lpi/101-500-exam-preparation-materials.html