{"id":18646,"date":"2026-09-22T09:07:39","date_gmt":"2026-09-22T09:07:39","guid":{"rendered":"https:\/\/www.examlabs.com\/certification\/?p=18646"},"modified":"2026-09-22T09:07:39","modified_gmt":"2026-09-22T09:07:39","slug":"lpi-101-500-practice-test-questions-and-exam-dumps-part9-q161-180","status":"publish","type":"post","link":"https:\/\/www.examlabs.com\/certification\/lpi-101-500-practice-test-questions-and-exam-dumps-part9-q161-180\/","title":{"rendered":"LPI 101-500 Practice Test Questions and Exam Dumps Part9 Q161-180"},"content":{"rendered":"<p><b>View Full<\/b> <a href=\"https:\/\/www.examlabs.com\/101-500-exam-dumps\"><b>LPI 101-500<\/b><b> Exam Dumps<\/b><\/a><b> and Practice Test Dumps<\/b><\/p>\n<p>&nbsp;<\/p>\n<h3><b>Question 161. Which command is commonly used to display the current working directory in Linux?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">ls<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">pwd<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">cd<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">dir<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. <\/b><b>pwd<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">pwd<\/span><span style=\"font-weight: 400;\"> command stands for \u201cprint working directory\u201d and displays the absolute path of the directory in which the user is currently located. This is especially useful when working with multiple directories or navigating through a complex filesystem structure. For example, running <\/span><span style=\"font-weight: 400;\">pwd<\/span><span style=\"font-weight: 400;\"> might return <\/span><span style=\"font-weight: 400;\">\/home\/user\/documents<\/span><span style=\"font-weight: 400;\">, showing exactly where the shell is currently positioned. The <\/span><span style=\"font-weight: 400;\">cd<\/span><span style=\"font-weight: 400;\"> command changes the current directory, while <\/span><span style=\"font-weight: 400;\">ls<\/span><span style=\"font-weight: 400;\"> lists files and directories. Although <\/span><span style=\"font-weight: 400;\">dir<\/span><span style=\"font-weight: 400;\"> may be available on some systems, it is not the standard command expected for this purpose in Linux administration. Therefore, <\/span><span style=\"font-weight: 400;\">pwd<\/span><span style=\"font-weight: 400;\"> is the correct command for displaying the current working directory.<\/span><\/p>\n<h3><b>Question 162. Which command can be used to search for a specific pattern within text files?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">grep<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">mkdir<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">chmod<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">uname<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. <\/b><b>grep<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">grep<\/span><span style=\"font-weight: 400;\"> command is used to search text for lines that match a specified pattern. It is one of the most frequently used Linux utilities for working with configuration files, logs, scripts, and command output. For example, <\/span><span style=\"font-weight: 400;\">grep error logfile.txt<\/span><span style=\"font-weight: 400;\"> searches for lines containing the word \u201cerror.\u201d Options can modify its behavior, such as <\/span><span style=\"font-weight: 400;\">-i<\/span><span style=\"font-weight: 400;\"> for case-insensitive matching and <\/span><span style=\"font-weight: 400;\">-r<\/span><span style=\"font-weight: 400;\"> for recursive searches. <\/span><span style=\"font-weight: 400;\">mkdir<\/span><span style=\"font-weight: 400;\"> creates directories, <\/span><span style=\"font-weight: 400;\">chmod<\/span><span style=\"font-weight: 400;\"> modifies file permissions, and <\/span><span style=\"font-weight: 400;\">uname<\/span><span style=\"font-weight: 400;\"> displays system information. Because <\/span><span style=\"font-weight: 400;\">grep<\/span><span style=\"font-weight: 400;\"> is designed specifically for pattern matching and text searching, it is the appropriate command when an administrator needs to locate particular information within text.<\/span><\/p>\n<h3><b>Question 163. Which file traditionally contains local user account information in Linux?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">\/etc\/hosts<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">\/etc\/group<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">\/etc\/passwd<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">\/etc\/fstab<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. <\/b><b>\/etc\/passwd<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">\/etc\/passwd<\/span><span style=\"font-weight: 400;\"> file traditionally contains information about local user accounts. Each entry generally includes the username, a placeholder for password information on systems using shadow passwords, user ID, group ID, comment or descriptive field, home directory, and login shell. Modern Linux systems normally store password hashes separately in <\/span><span style=\"font-weight: 400;\">\/etc\/shadow<\/span><span style=\"font-weight: 400;\"> to provide better security. <\/span><span style=\"font-weight: 400;\">\/etc\/group<\/span><span style=\"font-weight: 400;\"> contains group definitions, <\/span><span style=\"font-weight: 400;\">\/etc\/hosts<\/span><span style=\"font-weight: 400;\"> provides local hostname-to-address mappings, and <\/span><span style=\"font-weight: 400;\">\/etc\/fstab<\/span><span style=\"font-weight: 400;\"> defines filesystems that can be mounted. Understanding these files is important for Linux administration because user identity, groups, authentication, and filesystem configuration are common administrative tasks covered by the LPI 101-500 objectives.<\/span><\/p>\n<h3><b>Question 164. Which command changes the permissions associated with a file?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">chown<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">chmod<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">passwd<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">umask<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. <\/b><b>chmod<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">chmod<\/span><span style=\"font-weight: 400;\"> command changes the permission bits associated with files and directories. Linux permissions determine whether the owner, group, and other users can read, write, or execute an object. Permissions can be specified symbolically, such as <\/span><span style=\"font-weight: 400;\">chmod u+x script.sh<\/span><span style=\"font-weight: 400;\">, or numerically, such as <\/span><span style=\"font-weight: 400;\">chmod 755 script.sh<\/span><span style=\"font-weight: 400;\">. The <\/span><span style=\"font-weight: 400;\">chown<\/span><span style=\"font-weight: 400;\"> command changes ownership, while <\/span><span style=\"font-weight: 400;\">passwd<\/span><span style=\"font-weight: 400;\"> changes a user&#8217;s password. <\/span><span style=\"font-weight: 400;\">umask<\/span><span style=\"font-weight: 400;\"> controls the default permissions removed when new files and directories are created; it does not directly change the permissions of an existing file. Therefore, <\/span><span style=\"font-weight: 400;\">chmod<\/span><span style=\"font-weight: 400;\"> is the appropriate command for modifying existing file or directory permissions.<\/span><\/p>\n<h3><b>Question 165. Which command displays currently running processes in a dynamic, continuously updating view?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">ps<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">jobs<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">top<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">kill<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. <\/b><b>top<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">top<\/span><span style=\"font-weight: 400;\"> command provides a dynamic real-time view of running processes and system resource usage. It commonly displays process IDs, users, CPU utilization, memory utilization, process states, and other information. The display is periodically refreshed, allowing administrators to observe processes consuming significant resources. The <\/span><span style=\"font-weight: 400;\">ps<\/span><span style=\"font-weight: 400;\"> command provides a snapshot of processes at the time it is executed, while <\/span><span style=\"font-weight: 400;\">jobs<\/span><span style=\"font-weight: 400;\"> primarily shows jobs associated with the current shell. The <\/span><span style=\"font-weight: 400;\">kill<\/span><span style=\"font-weight: 400;\"> command sends signals to processes rather than displaying them. Consequently, <\/span><span style=\"font-weight: 400;\">top<\/span><span style=\"font-weight: 400;\"> is particularly useful when troubleshooting performance problems or identifying processes that are consuming excessive CPU or memory.<\/span><\/p>\n<h3><b>Question 166. Which command is commonly used to terminate a process by sending it a signal?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">kill<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">sleep<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">wait<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">nice<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. <\/b><b>kill<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">kill<\/span><span style=\"font-weight: 400;\"> command sends a signal to a process identified by its process ID. Despite its name, it is not limited to terminating processes; different signals can request various actions. For example, <\/span><span style=\"font-weight: 400;\">kill -TERM PID<\/span><span style=\"font-weight: 400;\"> sends a termination request, while <\/span><span style=\"font-weight: 400;\">kill -KILL PID<\/span><span style=\"font-weight: 400;\"> sends a signal that cannot normally be caught or ignored. Administrators should generally use a graceful termination signal before resorting to SIGKILL. The <\/span><span style=\"font-weight: 400;\">sleep<\/span><span style=\"font-weight: 400;\"> command pauses execution, <\/span><span style=\"font-weight: 400;\">wait<\/span><span style=\"font-weight: 400;\"> waits for background processes, and <\/span><span style=\"font-weight: 400;\">nice<\/span><span style=\"font-weight: 400;\"> starts a process with a specified scheduling priority. Understanding signals and process control is an important part of Linux system administration.<\/span><\/p>\n<h3><b>Question 167. Which command displays the amount of free and used memory in a human-readable format?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">df -h<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">free -h<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">du -h<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">meminfo<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. <\/b><b>free -h<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">free<\/span><span style=\"font-weight: 400;\"> command displays information about physical memory and swap usage. Using the <\/span><span style=\"font-weight: 400;\">-h<\/span><span style=\"font-weight: 400;\"> option makes the values human-readable, typically presenting sizes using units such as MiB or GiB. This can help administrators quickly determine how much memory is available and how much is being used. <\/span><span style=\"font-weight: 400;\">df -h<\/span><span style=\"font-weight: 400;\"> instead reports filesystem disk-space usage, while <\/span><span style=\"font-weight: 400;\">du -h<\/span><span style=\"font-weight: 400;\"> estimates the disk space used by files and directories. <\/span><span style=\"font-weight: 400;\">meminfo<\/span><span style=\"font-weight: 400;\"> is not the standard command for this task; detailed memory information can instead be examined through <\/span><span style=\"font-weight: 400;\">\/proc\/meminfo<\/span><span style=\"font-weight: 400;\">. Therefore, <\/span><span style=\"font-weight: 400;\">free -h<\/span><span style=\"font-weight: 400;\"> is the most appropriate command for viewing memory usage in a readable format.<\/span><\/p>\n<h3><b>Question 168. Which command is commonly used to create a compressed gzip archive from a tar archive?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">tar -czf<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">tar -xzf<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">gzip -d<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">zip -r<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. <\/b><b>tar -czf<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">tar -czf<\/span><span style=\"font-weight: 400;\"> command creates a tar archive and compresses it using gzip. The <\/span><span style=\"font-weight: 400;\">c<\/span><span style=\"font-weight: 400;\"> option creates a new archive, <\/span><span style=\"font-weight: 400;\">z<\/span><span style=\"font-weight: 400;\"> enables gzip compression, and <\/span><span style=\"font-weight: 400;\">f<\/span><span style=\"font-weight: 400;\"> specifies the archive filename. For example, <\/span><span style=\"font-weight: 400;\">tar -czf backup.tar.gz directory\/<\/span><span style=\"font-weight: 400;\"> creates a compressed archive containing the specified directory. In contrast, <\/span><span style=\"font-weight: 400;\">tar -xzf<\/span><span style=\"font-weight: 400;\"> is commonly used to extract a gzip-compressed tar archive. <\/span><span style=\"font-weight: 400;\">gzip -d<\/span><span style=\"font-weight: 400;\"> decompresses gzip data, while <\/span><span style=\"font-weight: 400;\">zip -r<\/span><span style=\"font-weight: 400;\"> creates a ZIP archive rather than a tar.gz archive. Understanding archive creation and extraction is important because Linux administrators frequently use these operations for backups, software distribution, and transferring groups of files.<\/span><\/p>\n<h3><b>Question 169. Which command is used to create a new directory?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">touch<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">mkdir<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">rmdir<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">mkfile<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. <\/b><b>mkdir<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">mkdir<\/span><span style=\"font-weight: 400;\"> command creates new directories in Linux. For example, <\/span><span style=\"font-weight: 400;\">mkdir projects<\/span><span style=\"font-weight: 400;\"> creates a directory named <\/span><span style=\"font-weight: 400;\">projects<\/span><span style=\"font-weight: 400;\"> in the current working directory. The <\/span><span style=\"font-weight: 400;\">-p<\/span><span style=\"font-weight: 400;\"> option can create parent directories when they do not already exist, such as <\/span><span style=\"font-weight: 400;\">mkdir -p \/home\/user\/projects\/linux<\/span><span style=\"font-weight: 400;\">. The <\/span><span style=\"font-weight: 400;\">touch<\/span><span style=\"font-weight: 400;\"> command is commonly used to create an empty file or update timestamps, while <\/span><span style=\"font-weight: 400;\">rmdir<\/span><span style=\"font-weight: 400;\"> removes empty directories. <\/span><span style=\"font-weight: 400;\">mkfile<\/span><span style=\"font-weight: 400;\"> is not a standard Linux command for creating directories. Administrators frequently use <\/span><span style=\"font-weight: 400;\">mkdir<\/span><span style=\"font-weight: 400;\"> when organizing files, creating application directories, preparing mount points, or establishing directory structures for users and services.<\/span><\/p>\n<h3><b>Question 170. Which filesystem is commonly associated with modern Linux installations and supports journaling?<\/b><\/h3>\n<ol>\n<li><b><\/b><span style=\"font-weight: 400;\"> FAT16<\/span><\/li>\n<li><b><\/b><span style=\"font-weight: 400;\"> ext4<\/span><\/li>\n<li><b><\/b><span style=\"font-weight: 400;\"> ISO9660<\/span><\/li>\n<li><b><\/b><span style=\"font-weight: 400;\"> swap<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. ext4<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">ext4 is a widely used Linux filesystem that supports journaling and provides features such as large filesystem support, extents, delayed allocation, and improved reliability compared with earlier ext filesystems. Journaling helps reduce filesystem recovery time after certain unexpected shutdowns by recording filesystem metadata changes in a journal. FAT16 is an older filesystem with significant limitations, ISO9660 is primarily associated with optical media, and swap is used as virtual memory space rather than a general-purpose filesystem for storing ordinary files. Linux distributions can support many filesystem types, but ext4 remains an important filesystem that administrators should understand for LPI-related tasks involving storage and filesystem management.<\/span><\/p>\n<h3><b>Question 171. Which command displays the amount of available and used disk space on mounted filesystems?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">du<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">lsblk<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">df<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">mount<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. <\/b><b>df<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">df<\/span><span style=\"font-weight: 400;\"> command reports filesystem disk-space usage for mounted filesystems. It commonly displays total space, used space, available space, usage percentage, and the filesystem or mount point. The <\/span><span style=\"font-weight: 400;\">-h<\/span><span style=\"font-weight: 400;\"> option makes the output easier to read by using human-readable units. The <\/span><span style=\"font-weight: 400;\">du<\/span><span style=\"font-weight: 400;\"> command instead estimates the space consumed by specific files and directories. <\/span><span style=\"font-weight: 400;\">lsblk<\/span><span style=\"font-weight: 400;\"> displays information about block devices, while <\/span><span style=\"font-weight: 400;\">mount<\/span><span style=\"font-weight: 400;\"> can display or manage mounted filesystems. Administrators often use <\/span><span style=\"font-weight: 400;\">df -h<\/span><span style=\"font-weight: 400;\"> when investigating disk-space problems because it quickly identifies filesystems that are approaching capacity.<\/span><\/p>\n<h3><b>Question 172. Which command changes the owner of a file or directory?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">chmod<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">chgrp<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">chown<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">usermod<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. <\/b><b>chown<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">chown<\/span><span style=\"font-weight: 400;\"> command changes the ownership of a file or directory. It can be used to change the user owner and, when specified appropriately, the group owner as well. For example, <\/span><span style=\"font-weight: 400;\">chown alice file.txt<\/span><span style=\"font-weight: 400;\"> changes the file&#8217;s user ownership to Alice, while <\/span><span style=\"font-weight: 400;\">chown alice:developers file.txt<\/span><span style=\"font-weight: 400;\"> changes both the user and group ownership. <\/span><span style=\"font-weight: 400;\">chmod<\/span><span style=\"font-weight: 400;\"> changes permission bits, and <\/span><span style=\"font-weight: 400;\">chgrp<\/span><span style=\"font-weight: 400;\"> specifically changes group ownership. <\/span><span style=\"font-weight: 400;\">usermod<\/span><span style=\"font-weight: 400;\"> modifies attributes of a user account rather than directly changing file ownership. Proper ownership configuration is important because Linux access control relies on the relationship between users, groups, and permission settings.<\/span><\/p>\n<h3><b>Question 173. Which command can be used to display the path of an executable found through the user&#8217;s PATH?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">which<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">where<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">locate<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">findpath<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. <\/b><b>which<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">which<\/span><span style=\"font-weight: 400;\"> command can identify the executable that would be invoked when a command is entered, based on the directories listed in the user&#8217;s <\/span><span style=\"font-weight: 400;\">PATH<\/span><span style=\"font-weight: 400;\"> environment variable. For example, <\/span><span style=\"font-weight: 400;\">which bash<\/span><span style=\"font-weight: 400;\"> may return a path such as <\/span><span style=\"font-weight: 400;\">\/usr\/bin\/bash<\/span><span style=\"font-weight: 400;\">. This can be useful when multiple versions of a program exist or when troubleshooting command-resolution problems. <\/span><span style=\"font-weight: 400;\">locate<\/span><span style=\"font-weight: 400;\"> searches an indexed database of filesystem names, while <\/span><span style=\"font-weight: 400;\">find<\/span><span style=\"font-weight: 400;\"> can perform more flexible filesystem searches. <\/span><span style=\"font-weight: 400;\">where<\/span><span style=\"font-weight: 400;\"> and <\/span><span style=\"font-weight: 400;\">findpath<\/span><span style=\"font-weight: 400;\"> are not standard replacements for <\/span><span style=\"font-weight: 400;\">which<\/span><span style=\"font-weight: 400;\"> in typical Linux environments. Therefore, <\/span><span style=\"font-weight: 400;\">which<\/span><span style=\"font-weight: 400;\"> is the appropriate command for checking the executable resolved through <\/span><span style=\"font-weight: 400;\">PATH<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h3><b>Question 174. Which environment variable determines the directories searched for executable commands?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">HOME<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">SHELL<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">PATH<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">USER<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. <\/b><b>PATH<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">PATH<\/span><span style=\"font-weight: 400;\"> environment variable contains a colon-separated list of directories that the shell searches when the user enters a command without specifying its full path. For example, a PATH might contain <\/span><span style=\"font-weight: 400;\">\/usr\/local\/bin:\/usr\/bin:\/bin<\/span><span style=\"font-weight: 400;\">. When a command such as <\/span><span style=\"font-weight: 400;\">ls<\/span><span style=\"font-weight: 400;\"> is entered, the shell searches these directories according to their order. <\/span><span style=\"font-weight: 400;\">HOME<\/span><span style=\"font-weight: 400;\"> identifies the user&#8217;s home directory, <\/span><span style=\"font-weight: 400;\">SHELL<\/span><span style=\"font-weight: 400;\"> commonly identifies the user&#8217;s default shell, and <\/span><span style=\"font-weight: 400;\">USER<\/span><span style=\"font-weight: 400;\"> commonly identifies the current username. Understanding <\/span><span style=\"font-weight: 400;\">PATH<\/span><span style=\"font-weight: 400;\"> is important because incorrectly configured PATH values can cause commands to fail or can result in an unexpected executable being selected.<\/span><\/p>\n<h3><b>Question 175. Which command is commonly used to display the current kernel and system information?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">uname<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">hostnamectl<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">sysinfo<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">kernel<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. <\/b><b>uname<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">uname<\/span><span style=\"font-weight: 400;\"> command displays information about the running system and kernel. Common options include <\/span><span style=\"font-weight: 400;\">-s<\/span><span style=\"font-weight: 400;\"> for the kernel name, <\/span><span style=\"font-weight: 400;\">-r<\/span><span style=\"font-weight: 400;\"> for the kernel release, <\/span><span style=\"font-weight: 400;\">-m<\/span><span style=\"font-weight: 400;\"> for the machine hardware name, and <\/span><span style=\"font-weight: 400;\">-a<\/span><span style=\"font-weight: 400;\"> for a broader collection of system information. For example, <\/span><span style=\"font-weight: 400;\">uname -r<\/span><span style=\"font-weight: 400;\"> can be useful when determining the currently running kernel version. <\/span><span style=\"font-weight: 400;\">hostnamectl<\/span><span style=\"font-weight: 400;\"> can also provide system and hostname information on systems using systemd, but it serves a broader system-management purpose. <\/span><span style=\"font-weight: 400;\">sysinfo<\/span><span style=\"font-weight: 400;\"> and <\/span><span style=\"font-weight: 400;\">kernel<\/span><span style=\"font-weight: 400;\"> are not standard commands for this task. Therefore, <\/span><span style=\"font-weight: 400;\">uname<\/span><span style=\"font-weight: 400;\"> is the expected command for basic kernel and system identification.<\/span><\/p>\n<h3><b>Question 176. Which command is commonly used to create a symbolic link?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">ln -s<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">link -p<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">cp -l<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">symlink<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. <\/b><b>ln -s<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">ln -s<\/span><span style=\"font-weight: 400;\"> command creates a symbolic link, which is a filesystem object that points to another file or directory. For example, <\/span><span style=\"font-weight: 400;\">ln -s \/opt\/application\/current app<\/span><span style=\"font-weight: 400;\"> creates a symbolic link named <\/span><span style=\"font-weight: 400;\">app<\/span><span style=\"font-weight: 400;\"> that points to the specified target. Symbolic links are useful for providing alternate paths, managing application versions, and simplifying access to frequently used locations. Without the <\/span><span style=\"font-weight: 400;\">-s<\/span><span style=\"font-weight: 400;\"> option, <\/span><span style=\"font-weight: 400;\">ln<\/span><span style=\"font-weight: 400;\"> normally creates a hard link instead. <\/span><span style=\"font-weight: 400;\">cp -l<\/span><span style=\"font-weight: 400;\"> is not the standard method for creating symbolic links, and <\/span><span style=\"font-weight: 400;\">symlink<\/span><span style=\"font-weight: 400;\"> is not a normal shell command. Understanding symbolic and hard links is an important Linux filesystem concept.<\/span><\/p>\n<h3><b>Question 177. Which command can be used to identify the type of data contained in a file?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">type<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">file<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">identify<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">kind<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. <\/b><b>file<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">file<\/span><span style=\"font-weight: 400;\"> command examines the contents of a file and attempts to determine its type. It can identify many types of data, including text files, executable binaries, scripts, archives, images, and other formats. This is useful when a filename does not have a meaningful extension or when an administrator needs to determine whether a file is binary or textual. The shell <\/span><span style=\"font-weight: 400;\">type<\/span><span style=\"font-weight: 400;\"> command serves a different purpose: it identifies how a command name is interpreted by the shell. <\/span><span style=\"font-weight: 400;\">identify<\/span><span style=\"font-weight: 400;\"> is commonly associated with image-processing utilities rather than general file-type detection, and <\/span><span style=\"font-weight: 400;\">kind<\/span><span style=\"font-weight: 400;\"> is not a standard Linux command. Therefore, <\/span><span style=\"font-weight: 400;\">file<\/span><span style=\"font-weight: 400;\"> is correct.<\/span><\/p>\n<h3><b>Question 178. Which command is commonly used to display the first lines of a text file?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">tail<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">head<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">top<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">begin<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. <\/b><b>head<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">head<\/span><span style=\"font-weight: 400;\"> command displays the beginning portion of a file or input stream. By default, it commonly displays the first ten lines, although the number can be changed using options such as <\/span><span style=\"font-weight: 400;\">-n<\/span><span style=\"font-weight: 400;\">. For example, <\/span><span style=\"font-weight: 400;\">head -n 20 logfile.txt<\/span><span style=\"font-weight: 400;\"> displays the first twenty lines. The <\/span><span style=\"font-weight: 400;\">tail<\/span><span style=\"font-weight: 400;\"> command performs the opposite operation by displaying the end of a file and is frequently used with the <\/span><span style=\"font-weight: 400;\">-f<\/span><span style=\"font-weight: 400;\"> option to monitor growing log files. <\/span><span style=\"font-weight: 400;\">top<\/span><span style=\"font-weight: 400;\"> displays running processes, while <\/span><span style=\"font-weight: 400;\">begin<\/span><span style=\"font-weight: 400;\"> is not a standard Linux command. Therefore, <\/span><span style=\"font-weight: 400;\">head<\/span><span style=\"font-weight: 400;\"> is the appropriate utility when an administrator needs to inspect the beginning of a text file.<\/span><\/p>\n<h3><b>Question 179. Which command is commonly used to display the last lines of a text file?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">tail<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">head<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">end<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">lastlines<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. <\/b><b>tail<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">tail<\/span><span style=\"font-weight: 400;\"> command displays the end of a file or input stream. By default, it commonly shows the last ten lines, but administrators can specify another number with options such as <\/span><span style=\"font-weight: 400;\">-n<\/span><span style=\"font-weight: 400;\">. One particularly useful feature is <\/span><span style=\"font-weight: 400;\">tail -f<\/span><span style=\"font-weight: 400;\">, which continuously displays newly appended data and is frequently used to monitor log files while a service is running. The <\/span><span style=\"font-weight: 400;\">head<\/span><span style=\"font-weight: 400;\"> command instead displays the beginning of a file. <\/span><span style=\"font-weight: 400;\">end<\/span><span style=\"font-weight: 400;\"> and <\/span><span style=\"font-weight: 400;\">lastlines<\/span><span style=\"font-weight: 400;\"> are not standard Linux commands for this purpose. Consequently, <\/span><span style=\"font-weight: 400;\">tail<\/span><span style=\"font-weight: 400;\"> is the appropriate utility for examining the final portion of a text file or following changes to an active log.<\/span><\/p>\n<h3><b>Question 180. Which command can be used to display the manual page for a Linux command?<\/b><\/h3>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">help<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">info<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">man<\/span><\/li>\n<li><b><\/b> <span style=\"font-weight: 400;\">docs<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. <\/b><b>man<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">man<\/span><span style=\"font-weight: 400;\"> command provides access to Linux manual pages, which document commands, system calls, library functions, configuration files, and other system interfaces. For example, <\/span><span style=\"font-weight: 400;\">man chmod<\/span><span style=\"font-weight: 400;\"> opens the manual page describing the <\/span><span style=\"font-weight: 400;\">chmod<\/span><span style=\"font-weight: 400;\"> command. Manual pages are organized into numbered sections, allowing users to distinguish between similarly named topics. The <\/span><span style=\"font-weight: 400;\">help<\/span><span style=\"font-weight: 400;\"> command is primarily associated with shell built-ins, while <\/span><span style=\"font-weight: 400;\">info<\/span><span style=\"font-weight: 400;\"> provides GNU Info documentation where available. <\/span><span style=\"font-weight: 400;\">docs<\/span><span style=\"font-weight: 400;\"> is not a standard command for accessing Linux manual pages. Learning to use <\/span><span style=\"font-weight: 400;\">man<\/span><span style=\"font-weight: 400;\"> effectively is important for Linux administrators because it provides detailed information about command syntax, options, behavior, and related references.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>View Full LPI 101-500 Exam Dumps and Practice Test Dumps &nbsp; Question 161. Which command is commonly used to display the current working directory in Linux? ls pwd cd dir Correct Answer: 2. pwd Explanation: The pwd command stands for \u201cprint working directory\u201d and displays the absolute path of the directory in which the user [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1648,1647],"tags":[],"_links":{"self":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18646"}],"collection":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/comments?post=18646"}],"version-history":[{"count":1,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18646\/revisions"}],"predecessor-version":[{"id":18647,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18646\/revisions\/18647"}],"wp:attachment":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/media?parent=18646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/categories?post=18646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/tags?post=18646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}