101-500 Free Study Guide! with New Update 246 Exam Questions
Get up-to-date Real Exam Questions for 101-500 UPDATED [2024]
Lpi 101-500 certification exam, also known as the LPIC-1 Exam 101, Part 1 of 2, version 5.0, is an entry-level certification for professionals who want to demonstrate their skills in Linux administration. 101-500 exam is designed to test the fundamental knowledge and skills required to install, configure, and manage Linux systems. It is essential for those who want to pursue a career in Linux administration or IT professionals who want to expand their skillset.
LPI LPIC-1 Exam Certification Details:
| Exam Price | $200 (USD) |
| Exam Code | 101-500 |
| Sample Questions | LPI LPIC-1 Sample Questions |
| Schedule Exam | LPI Marketplace |
| Number of Questions | 60 |
| Passing Score | 500 / 800 |
NEW QUESTION # 72
What is the first program the Linux kernel starts at boot time when using System V init?
/lib/init.so
- A. /proc/sys/kernel/init
- B. /etc/rc.d/rcinit
- C. /sbin/init
- D.
- E. /boot/init
Answer: E
NEW QUESTION # 73
Which of the following commands will produce the following output?
- A. proclist
- B. netstat
- C. ps
- D. jobs
Answer: C
NEW QUESTION # 74
What is the process ID number of the init process on a SysV init based system?
- A. It is set to the current run level.
- B. 0
- C. 1
- D. 2
- E. It is different with each reboot.
Answer: C
Explanation:
Explanation
The process ID number of the init process on a SysV init based system is 1. The init process is the first process that runs on the system, and it is responsible for initializing the user-space environment and spawning all other processes. The init process is always the first process that runs on the system, and it has the process ID (PID) of 1. The PID is a unique identifier for each process on the system, and it is assigned by the kernel.
The PID of the init process is always 1, regardless of the reboot or the run level. You can verify the PID of the init process by using the ps command, which shows information about the processes on the system. For example, to show the PID, the user, the command, and the arguments of the init process, use the following command:
ps -p 1 -o pid,user,cmd
The output of the command will show something like:
PID USER CMD 1 root /sbin/init
This shows that the init process has the PID of 1, the user of root, and the command of /sbin/init.
References:
* [SysVinit - ArchWiki]
* [Process Management in Linux - GeeksforGeeks]
* [ps(1) - Linux manual page]
NEW QUESTION # 75
Which permissions and ownership should the file /etc/passwd have?
- A. -rw-------1 rootroot531 Jun 5 22:45 /etc/passwd
- B. -rw-------1 11531 Jun 5 22:45 /etc/passwd
- C. -rw-r--r--1 11531 Jun 5 22:45 /etc/passwd
- D. -rw-r--r--1 rootroot531 Jun 5 22:45 /etc/passwd
Answer: D
NEW QUESTION # 76
FILL BLANK
What directory contains configuration files for additional yum repositories? (Specify the full path to the directory.)
Answer:
Explanation:
/etc/yum.conf
NEW QUESTION # 77
When removing a package on a system using dpkg package management, which dpkgoption ensures configuration files are removed as well?
- A. --declare
- B. --purge
- C. --clean
- D. --vacuum
- E. --remove
Answer: B
Explanation:
Explanation/Reference:
NEW QUESTION # 78
Consider the following directory:
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory salesare owned by the group sales?
(Choose two.)
- A. chgrp -p sales sales
- B. chmod 2775 sales
- C. chmod g+ssales
setpol -R newgroup=sales sales - D.
- E. chown --persistent *.sales sales
Answer: C,D
NEW QUESTION # 79
Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?
- A. magic
- B. pmagic
- C. file
- D. hash
- E. type
Answer: C
Explanation:
Explanation
The file command determines the type of a file by using a definition database file which contains information about all common file types. The database file is usually located at /usr/share/misc/magic or /usr/share/file/magic and can be customized by the user. The file command analyzes the content and structure of the file and compares it with the patterns in the database file to identify the file type. The file command can also check the file name extension, but it does not rely on it. The other options are either invalid or do not perform the desired task.The magic, pmagic and hash commands are not valid Linux commands. The type command is used to display information about command type, not file type.
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 # 80
When using regular expressions, which of the following characters match the beginning of a line?
- A. ^
- B. $
- C. *
- D. +
- E. ?
Answer: A
Explanation:
Explanation
When using regular expressions, the ^ character matches the beginning of a line. For example, ^Hello will match any line that starts with Hello. The ? character matches zero or one occurrence of the preceding character or group. For example, colou?r will match both color and colour. The * character matches zero or more occurrences of the preceding character or group. For example, ab*c will match ac, abc, abbc, abbbc, and so on. The + character matches one or more occurrences of the preceding character or group. For example, ab+c will match abc, abbc, abbbc, and so on, but not ac.
Thecharactermatchestheendofaline.Forexample,Worldwill match any line that ends with World.References:[LPI Exam 101 Detailed Objectives], Topic 103: GNU and Unix Commands, Weight: 25, Objective 103.7: Use regular expressions with the standard Linux utilities, Regular Expressions
NEW QUESTION # 81
Which of the following directories on a 64 bit Linux system typically contain shared libraries? (Choose two.)
- A. ~/.lib64/
- B. /usr/lib64/
- C. /lib64/
- D. /opt/lib64/
- E. /var/lib64/
Answer: B,C
NEW QUESTION # 82
The USB device filesystem can be found under /proc/______/usb/.
(Please fill in the blank with the single word only)
Answer:
Explanation:
bus
NEW QUESTION # 83
What command changes the nice level of a running process? (Specify ONLY the command without any path or parameters)
Answer:
Explanation:
renice
NEW QUESTION # 84
Which is the default percentage of reserved space for the root user on new ext4 filesystems?
- A. 10%
- B. 3%
- C. 0%
- D. 15%
- E. 5%
Answer: E
NEW QUESTION # 85
Which of the following commands will write a message to the terminals of all logged in users?
- A. yell
- B. print
- C. bcast
- D. wall
- E. mesg
Answer: D
Explanation:
Explanation
The wall command is a command-line utility that displays messages to all logged-in users on the terminal12.
The wall command takes the following basic syntax:
$ wall OPTION { file | message }
The OPTION can be one of the following:
* -n or --nobanner: Suppress the banner (the header line with the hostname, date, and time) from the output. This option can only be used by the root user.
* -v or --version: Display version information and exit.
* -h or --help: Display help message and exit.
The file or message argument is the source of the message to be displayed. If a file is specified, the wall command will read the message from the file. If a message is specified, the wall command will read the message from the standard input. The message can be terminated by pressing Ctrl+D.
The other commands in the options are not valid or do not have the same functionality as the wall command:
* bcast: There is no such command in Linux.
* mesg: This command is used to control write access to the terminal. It does not send messages to other users.
* print: This command is used to print files or data to a printer. It does not send messages to other users.
* yell: There is no such command in Linux.
References:
1: How to Send a Message to Logged Users in Linux Terminal - Tecmint 2: How to Send Broadcast Messages to Users in Linux Terminal
NEW QUESTION # 86
Which of the following commands is used to change options and positional parameters within a running Bash shell?
history
- A. set
- B.
- C. envsetup
- D. bashconf
- E. setsh
Answer: C
NEW QUESTION # 87
The USB device filesystem can be found under /proc/______/usb/. (Please fill in the blank with the single word only)
Answer:
Explanation:
bus
Explanation The USB device filesystem can be found under /proc/bus/usb/1. This is a virtual filesystem that provides information about the USB devices and buses connected to the system12. It contains files and directories that correspond to the USB host controllers, hubs, and devices12. For example, the following output shows the contents of /proc/bus/usb/ on a system with one USB host controller and two USB devices:
The directories 001 and 002 represent the USB buses, and each contain files that represent the USB devices on that bus. The file devices contains a summary of all the USB devices and their configurations. The file drivers contains a list of the USB drivers and the devices they are bound to12.
The /proc/bus/usb/ filesystem is deprecated and should not be used anymore3. It has been replaced by the
/sys/bus/usb/ filesystem, which is a sysfs mount that provides more detailed and structured information about the USB devices and buses3 .
References:
1: USB in a NutShell - Chapter 5 - Linux USB 2: Linux USB FAQ 3: Alternative to /proc/bus/usb/devices - Super User : [What is the difference between /dev/usb, /proc/bus/usb and /sys/bus/usb? - Super User]
NEW QUESTION # 88
How is a symbolic link called bar.conf pointing to foo.conf created?
- A. ln -s bar.conf foo.conf
- B. ln -s foo.conf bar.conf
- C. ln foo.conf bar.conf
- D. ln bar.conffoo.conf
Answer: B
NEW QUESTION # 89
Following the Filesystem Hierarchy Standard (FHS), where should binaries that have been compiled by the system administrator be placed in order to be made available to all users on the system?
Answer:
Explanation:
/usr/local/bin/
NEW QUESTION # 90
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 # 91
The system configuration file named _______ is commonly used to set the default runlevel.
(Please provide the file name with full path information)
Answer:
Explanation:
/etc/inittab
NEW QUESTION # 92
......
The LPIC-1 certification is an excellent way for Linux professionals to demonstrate their knowledge and skills in the field. It is recognized globally and is highly valued by employers. LPIC-1 Exam 101, Part 1 of 2, version 5.0 certification is designed to be vendor-neutral, meaning that it is not tied to any specific Linux distribution. This makes it an ideal certification for professionals who work with various Linux distributions.
Pass Lpi 101-500 Exam in First Attempt Guaranteed: https://www.prep4sureguide.com/101-500-prep4sure-exam-guide.html
Pass 101-500 Exam Latest Practice Questions: https://drive.google.com/open?id=1TEn5JcaRtGSxjOynVXaAZ4FeUriZo4GT