
[Jul 16, 2024] 101-500 Exam Brain Dumps - Study Notes and Theory
Pass Lpi 101-500 Test Practice Test Questions Exam Dumps
Lpi 101-500 certification exam is part of the LPIC-1 certification program, which is designed to test the proficiency of individuals in the Linux operating system. 101-500 exam, also known as LPIC-1 Exam 101, Part 1 of 2, version 5.0, covers the foundational concepts of Linux, including basic system architecture, command-line usage, and file management. It is an entry-level certification exam that is ideal for individuals who are just starting their careers in the IT industry.
Lpi 101-500 Exam is a computer-based exam that consists of 60 multiple-choice and fill-in-the-blank questions. Candidates have 90 minutes to complete the exam, and a passing score of 500 out of 800 is required to obtain certification.
NEW QUESTION # 44
FILL BLANK
Which program runs a command in specific intervals and refreshes the display of the program's output?
(Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
watch
NEW QUESTION # 45
Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?
- A. Link count
- B. Permissions
- C. File size
- D. Inode number
- E. Modify timestamp
Answer: A
Explanation:
Explanation
When a hard link pointing to a file is created, the link count of the file is increased by one. The link count is the number of hard links that refer to the same inode. The file size, modify timestamp, inode number and permissions are not affected by creating a hard link. References:
* LPI Exam 101 Detailed Objectives, Topic 104: Devices, Linux Filesystems, Filesystem Hierarchy Standard, Weight: 9, Objective 104.5: Create and change hard and symbolic links
* LPI Linux Essentials Study Guide, Chapter 4: The Linux Filesystem, Section 4.3: Hard and Symbolic Links, Page 81
NEW QUESTION # 46
Which of the following commands redirects the output of lsto standard error?
ls >-1
- A. ls <<ERR
- B. ls >>2
- C. ls |error
- D.
- E. ls >&2
Answer: B
NEW QUESTION # 47
When in Normal mode invi, which character can be used to begin a reverse search of the text?
- A. /
- B. F
- C. ?
- D. r
Answer: C
NEW QUESTION # 48
Which of the following commands show how the shell handles a specific command?
- A. stat
- B. fileinfo
- C. case
- D. type
- E. where
Answer: D
NEW QUESTION # 49
Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
mkdir, /usr/bin/mkdir
NEW QUESTION # 50
In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?
- A. -maxlevels
- B. -s
- C. -n
- D. -dirmax
- E. -maxdepth
Answer: E
NEW QUESTION # 51
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
Answer:
Explanation:
cmdline, /proc/cmdline
NEW QUESTION # 52
Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and 8:59 am?
- A. grep -E loga.log ':08:[0-9]+:[0-9]+'
- B. grep -E ':08:[00]+' loga.log
- C. grep -E ':08:[0-9]+:[0-9]+' loga.log
- D. grep loga.log ':08:[0-9]:[0-9]'
- E. grep -E ':08:[09]+:[09]+' loga.log
Answer: C
Explanation:
Explanation
The command that filters out all log entries in the time period between 8:00 am and 8:59 am is grep -E
':08:[0-9]+:[0-9]+' loga.log. The grep command is used to search for a pattern in a file or standard input and print the matching lines. The -E or --extended-regexp option enables the use of extended regular expressions, which support more operators and syntax than the basic regular expressions. The pattern ':08:[0-9]+:[0-9]+' is an extended regular expression that matches a colon followed by 08, followed by another colon, followed by one or more digits, followed by another colon, followed by one or more digits. This pattern matches any timestamp that has 08 as the hour part, which corresponds to the time period between 8:00 am and 8:59 am.
The loga.log file is the name of the log file that contains the timestamps of the format DD/MM/YYYY:hh:mm:ss. For example, running grep -E ':08:[0-9]+:[0-9]+' loga.log will produce an output like this:
01/01/2023:08:00:01 User logged in 01/01/2023:08:15:23 User performed an action 01/01/2023:08:30:45 User logged out 01/01/2023:08:45:12 User logged in again The other commands are either invalid or do not perform the desired task. The grep -E ':08:[09]+:[09]+' loga.log command will only match timestamps that have 0 or 9 as the minute and second parts, which is too restrictive. The grep -E ':08:[00]+' loga.log command will only match timestamps that have 0 as the minute and second parts, which is too specific. The grep -E loga.log ':08:[0-9]+:[0-9]+' command will not work, as the file name should come after the pattern, not before it. The grep loga.log ':08:[0-9]:[0-9]' command will not work, as it uses a basic regular expression without the -E option, and it will only match timestamps that have one digit as the minute and second parts, which is too narrow.
NEW QUESTION # 53
Where does the BIOS search for a bootloader?
- A. Only on hard disk drives in the defined boot device order.
- B. The BIOS is not responsible to search for a valid bootloader.
- C. On all connected storage media in the defined boot device order.
- D. On all connected storage media regardless of the boot device order.
- E. Only on the last added storage media.
Answer: C
Explanation:
Explanation
The BIOS (Basic Input/Output System) is a firmware program that is stored in a ROM chip on the motherboard, and it performs some basic tasks when the system is powered on, such as:
* initializing the hardware components and peripherals
* performing the power-on self-test (POST) to check the system integrity
* selecting a boot device from the boot order list
* loading and executing the bootloader program from the boot device
The boot device is the data carrier that contains the bootloader, which is a small program that is responsible for loading and executing the kernel. The boot device can be a hard disk, a USB drive, a CD-ROM, or a network device. The BIOS has a boot order list, which is a sequence of possible boot devices that the BIOS will search for a valid bootloader. The boot order list can be configured by the user through the BIOS setup utility, which is usually accessed by pressing a key such as F2, F10, or Del during the POST.
The BIOS will search for a bootloader by means of a special signature, which is a sequence of bytes that indicates the presence of a bootloader. The signature is usually located in the first sector of the boot device, which is called the boot sector or the master boot record (MBR). The BIOS will read the boot sector of each boot device in the boot order list, and check if the last two bytes are 0x55 and 0xAA, which are the standard boot signature. If the boot signature is found, the BIOS will load the boot sector into memory and execute it. If the boot signature is not found, the BIOS will move on to the next boot device in the boot order list. If none of the boot devices have a valid boot signature, the BIOS will display an error message such as:
No bootable device - insert boot disk and press any key
References:
* How does the BIOS know where the bootloader is located? - Super User
* Bootloader: What is it and how does it work? - IONOS
* Boot Process with Systemd in Linux - GeeksforGeeks
* Linux Boot Process Step-by-Step Explained - javatpoint
NEW QUESTION # 54
Which SysV init configuration file is commonly used to set the default run level? (Specify the full name of the file, including path.)
Answer:
Explanation:
inittab
NEW QUESTION # 55
What is the output when the regular expression s/[ABC] [abc]/xx/is applied to the following string?
ABCabc
ABxxbc
- A. xxxxxx
- B.
- C. ABCabc
- D. xxCxxc
- E. Axxaxx
Answer: C
NEW QUESTION # 56
Which of the following commands can be used to perform a full text search on all available packages on a Debian system?
- A. apt-search
- B. apt-get
- C. apt
- D. dpkg
- E. apt-cache
Answer: E
NEW QUESTION # 57
When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)
- A. Timestamps
- B. File sizes
- C. GnuPG signatures
- D. Inodes
- E. MD5 checksums
Answer: A,B,E
Explanation:
Explanation
When using rpm --verify to check files created during the installation of RPM packages, the following information is taken into consideration:
* Timestamps. RPM compares the modification time of the installed files with the original time stored in the RPM database. If the file has been modified after installation, the timestamp will differ and RPM will report it with an M flag1.
* MD5 checksums. RPM calculates the MD5 checksum of the installed files and compares it with the original checksum stored in the RPM database. If the file has been altered in any way, the checksum will differ and RPM will report it with an 5 flag1.
* File sizes. RPM compares the size of the installed files with the original size stored in the RPM database. If the file has been truncated or appended, the size will differ and RPM will report it with an S flag1.
RPM does not take into consideration the following information:
* Inodes. RPM does not check the inode number of the installed files, as it is not a reliable indicator of file identity. The inode number can change if the file is moved, copied, or restored from a backup2.
* GnuPG signatures. RPM does not verify the GnuPG signatures of the installed files, as they are not part of the RPM package format. The GnuPG signatures are used to verify the authenticity and integrity of the RPM package files before installation, not after3.
References:
* Using RPM to Verify Installed Packages
* inode(7) - Linux manual page
* RPM and GPG: How to verify Linux packages before installing them
NEW QUESTION # 58
FILL BLANK
Which System V init configuration file is commonly used to set the default run level? (Specify the full name of the file, including path.)
Answer:
Explanation:
/etc/inittab
NEW QUESTION # 59
Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?
- A. --no-clobber
- B. -c
- C. -a
- D. --continue
Answer: C
Explanation:
Explanation
The -a option to the tee command will cause the output to be appended to the end of the output file instead of overwriting the existing file contents. The tee command reads from standard input (STDIN) and writes to standard output (STDOUT) and one or more files simultaneously. For example, ls | tee file.txt will display the output of the ls command and also write it to file.txt. If file.txt already exists, it will be overwritten unless the
-a option is used. References: LPI Exam 101 Detailed Objectives, Topic 103: GNU and Unix Commands, Weight: 25, Objective 103.3: Perform basic file management, tee command
NEW QUESTION # 60
Which of the following commands are common Linux commands for file management? (Choose three correct answers.)
- A. mkdir
- B. cp
- C. copy
- D. move
- E. mv
Answer: A,B,E
Explanation:
Explanation
The common Linux commands for file management are mv, cp and mkdir. The mv command moves or renames files and directories. The cp command copies files and directories. The mkdir command creates directories. The copy and move commands are not valid Linux commands. References:
* LPI Exam 101 Detailed Objectives, Topic 103: GNU and Unix Commands, Weight: 25, Objective
103.1: Work on the command line
* LPI Linux Essentials Study Guide, Chapter 3: Working on the Command Line, Section 3.2: Basic Commands, Page 55
NEW QUESTION # 61
Which of the following commands is used to modify quota settings? (Choose two.)
- A. setquota
- B. quotaset
- C. edquota
- D. editquota
- E. quotaedit
Answer: C
NEW QUESTION # 62
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 creating a symbolic link from the old to the new path of the data.
- B. By running the command touch on the old path.
- 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: A,E
NEW QUESTION # 63
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 # 64
Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?
- A. kill -STOP 123
- B. kill -TERM 123
- C. kill -KILL 123
- D. kill -PIPE 123
Answer: B
Explanation:
Explanation
The command kill -TERM 123 kills the process with the PID 123 but allows the process to "clean up" before exiting. The option -TERM specifies the signal to be sent to the process, which is the termination signal (SIGTERM). This signal requests the process to terminate gracefully, which means that the process can perform any necessary actions before exiting, such as closing files, releasing resources, or saving data. The process can also catch the signal and ignore it or handle it in a different way, if it is programmed to do so. The syntax is: kill -TERM pid. For example, kill -TERM 123 will send the SIGTERM signal to the process with the PID 123, asking it to terminate nicely. The other options are not correct because:
* A. kill -PIPE 123: This command sends the broken pipe signal (SIGPIPE) to the process, which is not used to kill the process, but to notify it that the other end of a pipe has been closed. This signal is usually ignored by the process, unless it is writing to the pipe, in which case it will cause the process to terminate1.
* B. kill -KILL 123: This command sends the kill signal (SIGKILL) to the process, which is the most powerful way to kill the process, but it does not allow the process to "clean up" before exiting. The SIGKILL signal cannot be caught, blocked, or ignored by the process, and it forces the process to terminate immediately, without performing any actions. This command should be used as a last resort, when the process is unresponsive or causing harm to the system2.
* C. kill -STOP 123: This command sends the stop signal (SIGSTOP) to the process, which is not used to kill the process, but to pause it. The SIGSTOP signal cannot be caught, blocked, or ignored by the process, and it suspends the execution of the process until it receives a continue signal (SIGCONT). This command can be used to temporarily stop a process from running, without terminating it3. References:
* What is the purpose of the SIGPIPE signal? - Stack Overflow
* How to kill a process in Linux - LinuxConfig.org
* Linux Signals - GeeksforGeeks
NEW QUESTION # 65
......
Career Path
After completing the LPI 101-500 exam, many candidates choose to continue along the same path by validating their high-level skills relating to Linux management. Here, you will have tons of options that can open doors to open exciting career opportunities with massive potential for professional growth. Find a few such options listed below:
- The GIAC Certified UNIX Security Administrator (GCUX) certificate;
- The Oracle Linux Administration Paths including the Oracle Certified Associate (OCA) and the Oracle Certified Professional (OCP) qualifications;
- The Red Hat Level Linux certifications including the Red Hat Certified System Administrator (RHCSA), the Red Hat Certified Engineer (RHCE), and the Red Hat Certified Architect (RHCA).
Verified 101-500 dumps Q&As - 101-500 dumps with Correct Answers: https://www.free4dump.com/101-500-braindumps-torrent.html
The Best LPIC Level1 Study Guide for the 101-500 Exam: https://drive.google.com/open?id=11P5N1disWoc-zb0WLmNhNwzoY1nDyyMW