{"id":18634,"date":"2026-09-22T08:56:57","date_gmt":"2026-09-22T08:56:57","guid":{"rendered":"https:\/\/www.examlabs.com\/certification\/?p=18634"},"modified":"2026-09-22T08:56:57","modified_gmt":"2026-09-22T08:56:57","slug":"lpi-101-500-practice-test-questions-and-exam-dumps-part-15-q281-300","status":"publish","type":"post","link":"https:\/\/www.examlabs.com\/certification\/lpi-101-500-practice-test-questions-and-exam-dumps-part-15-q281-300\/","title":{"rendered":"LPI 101-500 Practice Test Questions and Exam Dumps Part 15 Q281-300"},"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<p><b>Question: 281. Which directory traditionally contains most user-level executable programs installed by the system?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">\/var\/lib<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">\/usr\/bin<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">\/etc<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">\/var\/log<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. \/usr\/bin<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">\/usr\/bin<\/span><span style=\"font-weight: 400;\"> directory traditionally contains a large collection of executable programs intended for ordinary users and applications. Commands such as text-processing utilities, editors, and many other user-space programs can be located there. The <\/span><span style=\"font-weight: 400;\">\/etc<\/span><span style=\"font-weight: 400;\"> directory is primarily used for system configuration files, while <\/span><span style=\"font-weight: 400;\">\/var\/lib<\/span><span style=\"font-weight: 400;\"> stores variable application and system state data. <\/span><span style=\"font-weight: 400;\">\/var\/log<\/span><span style=\"font-weight: 400;\"> contains log files generated by the operating system and applications. Modern Linux systems may use merged filesystem layouts in which <\/span><span style=\"font-weight: 400;\">\/bin<\/span><span style=\"font-weight: 400;\"> is linked to <\/span><span style=\"font-weight: 400;\">\/usr\/bin<\/span><span style=\"font-weight: 400;\">, but <\/span><span style=\"font-weight: 400;\">\/usr\/bin<\/span><span style=\"font-weight: 400;\"> remains an important standard location for user-space executables.<\/span><\/p>\n<p><b>Question: 282. Which directory is primarily associated with variable application and system state data?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">\/var\/lib<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">\/usr\/share<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">\/boot<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">\/dev<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. \/var\/lib<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">\/var\/lib<\/span><span style=\"font-weight: 400;\"> directory stores persistent variable data used by applications and system services. Examples can include package-management databases, service state information, and other data that programs need to preserve between system reboots. It differs from <\/span><span style=\"font-weight: 400;\">\/var\/log<\/span><span style=\"font-weight: 400;\">, which is specifically associated with logs, and <\/span><span style=\"font-weight: 400;\">\/var\/cache<\/span><span style=\"font-weight: 400;\">, which stores data that can generally be regenerated. <\/span><span style=\"font-weight: 400;\">\/boot<\/span><span style=\"font-weight: 400;\"> contains files needed during the boot process, while <\/span><span style=\"font-weight: 400;\">\/dev<\/span><span style=\"font-weight: 400;\"> provides interfaces representing devices. Understanding the purpose of <\/span><span style=\"font-weight: 400;\">\/var\/lib<\/span><span style=\"font-weight: 400;\"> helps administrators identify where applications maintain persistent operational state.<\/span><\/p>\n<p><b>Question: 283. Which directory is traditionally used for system lock files?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">\/var\/cache<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">\/var\/spool<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">\/var\/lock<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">\/usr\/local<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. \/var\/lock<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">\/var\/lock<\/span><span style=\"font-weight: 400;\"> directory is traditionally associated with lock files used to indicate that a resource is currently being used or reserved. Locking helps prevent multiple processes from simultaneously accessing a resource in ways that could cause conflicts. On many modern Linux distributions, <\/span><span style=\"font-weight: 400;\">\/var\/lock<\/span><span style=\"font-weight: 400;\"> may be implemented as part of the <\/span><span style=\"font-weight: 400;\">\/run\/lock<\/span><span style=\"font-weight: 400;\"> hierarchy because <\/span><span style=\"font-weight: 400;\">\/run<\/span><span style=\"font-weight: 400;\"> is intended for runtime data. Nevertheless, understanding <\/span><span style=\"font-weight: 400;\">\/var\/lock<\/span><span style=\"font-weight: 400;\"> remains relevant for Linux administration and filesystem knowledge. It should not be confused with <\/span><span style=\"font-weight: 400;\">\/var\/cache<\/span><span style=\"font-weight: 400;\">, which stores reusable cached information, or <\/span><span style=\"font-weight: 400;\">\/var\/spool<\/span><span style=\"font-weight: 400;\">, which holds queued data.<\/span><\/p>\n<p><b>Question: 284. What does <\/b><b>ls -i<\/b><b> display in addition to the normal directory listing?<\/b><\/p>\n<ol>\n<li><b><\/b><span style=\"font-weight: 400;\"> File ownership only<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b><span style=\"font-weight: 400;\"> File contents<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b><span style=\"font-weight: 400;\"> Network interface addresses<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b><span style=\"font-weight: 400;\"> Inode numbers<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4. Inode numbers<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">ls -i<\/span><span style=\"font-weight: 400;\"> command displays the inode number associated with each listed filesystem object. An inode is a filesystem data structure that stores metadata about a file, such as ownership, permissions, timestamps, and references to the file&#8217;s data blocks. The inode number is particularly useful when investigating hard links because multiple hard-linked filenames can reference the same inode. The command does not display file contents or network information. Administrators can use inode numbers to help distinguish filesystem objects and investigate relationships between filenames and their underlying filesystem metadata.<\/span><\/p>\n<p><b>Question: 285. Which option causes <\/b><b>ls<\/b><b> to sort entries by file size?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">-S<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">-t<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">-r<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">-i<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. -S<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">-S<\/span><span style=\"font-weight: 400;\"> option tells <\/span><span style=\"font-weight: 400;\">ls<\/span><span style=\"font-weight: 400;\"> to sort directory entries by file size, normally placing larger files first. This can be useful when looking for unusually large files that may be consuming significant disk space. The <\/span><span style=\"font-weight: 400;\">-t<\/span><span style=\"font-weight: 400;\"> option sorts by modification time, while <\/span><span style=\"font-weight: 400;\">-r<\/span><span style=\"font-weight: 400;\"> reverses the sorting order and can be combined with other sorting options. The <\/span><span style=\"font-weight: 400;\">-i<\/span><span style=\"font-weight: 400;\"> option displays inode numbers rather than controlling size sorting. For example, <\/span><span style=\"font-weight: 400;\">ls -lS<\/span><span style=\"font-weight: 400;\"> combines a long listing with size-based sorting, making it easier to inspect permissions, ownership, timestamps, and file sizes together.<\/span><\/p>\n<p><b>Question: 286. Which <\/b><b>ls<\/b><b> option sorts directory entries by modification time?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">-S<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">-t<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">-i<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">-F<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. -t<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">-t<\/span><span style=\"font-weight: 400;\"> option makes <\/span><span style=\"font-weight: 400;\">ls<\/span><span style=\"font-weight: 400;\"> sort entries according to their modification time. By default, newer entries are shown before older ones. This is useful when an administrator needs to identify recently modified files quickly. The option can be combined with other <\/span><span style=\"font-weight: 400;\">ls<\/span><span style=\"font-weight: 400;\"> options, such as <\/span><span style=\"font-weight: 400;\">-l<\/span><span style=\"font-weight: 400;\">, to display detailed metadata alongside the time-based ordering. The <\/span><span style=\"font-weight: 400;\">-S<\/span><span style=\"font-weight: 400;\"> option sorts by file size, <\/span><span style=\"font-weight: 400;\">-i<\/span><span style=\"font-weight: 400;\"> displays inode numbers, and <\/span><span style=\"font-weight: 400;\">-F<\/span><span style=\"font-weight: 400;\"> adds indicators to filenames based on their file types. Adding <\/span><span style=\"font-weight: 400;\">-r<\/span><span style=\"font-weight: 400;\"> can reverse the normal sorting order.<\/span><\/p>\n<p><b>Question: 287. What does <\/b><b>ls -1<\/b><b> do?<\/b><\/p>\n<ol>\n<li><b><\/b><span style=\"font-weight: 400;\"> Shows hidden files only<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b><span style=\"font-weight: 400;\"> Displays inode numbers<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b><span style=\"font-weight: 400;\"> Displays one entry per line<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b><span style=\"font-weight: 400;\"> Sorts entries by size<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. Displays one entry per line<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">-1<\/span><span style=\"font-weight: 400;\"> option tells <\/span><span style=\"font-weight: 400;\">ls<\/span><span style=\"font-weight: 400;\"> to display one directory entry on each line. This can be especially useful when output needs to be processed by another command or when a clean, vertically arranged listing is easier to read. It does not mean that only one file is displayed. Hidden files are controlled by the <\/span><span style=\"font-weight: 400;\">-a<\/span><span style=\"font-weight: 400;\"> option, inode numbers by <\/span><span style=\"font-weight: 400;\">-i<\/span><span style=\"font-weight: 400;\">, and size sorting by <\/span><span style=\"font-weight: 400;\">-S<\/span><span style=\"font-weight: 400;\">. Although <\/span><span style=\"font-weight: 400;\">ls<\/span><span style=\"font-weight: 400;\"> may automatically choose a suitable display format depending on whether its output goes to a terminal or another command, <\/span><span style=\"font-weight: 400;\">-1<\/span><span style=\"font-weight: 400;\"> explicitly requests one entry per line.<\/span><\/p>\n<p><b>Question: 288. Which <\/b><b>find<\/b><b> test restricts results to regular files?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">-type f<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">-file regular<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">-regular<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">-kind file<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. -type f<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">find<\/span><span style=\"font-weight: 400;\"> expression <\/span><span style=\"font-weight: 400;\">-type f<\/span><span style=\"font-weight: 400;\"> restricts matches to regular files. A regular file is the ordinary type used for documents, scripts, program data, and similar content. Other type values can identify directories, symbolic links, block devices, character devices, and other filesystem objects. For example, <\/span><span style=\"font-weight: 400;\">find \/home -type f<\/span><span style=\"font-weight: 400;\"> searches under <\/span><span style=\"font-weight: 400;\">\/home<\/span><span style=\"font-weight: 400;\"> and returns regular files. This test is useful because directories and other filesystem objects are otherwise possible matches. Combining <\/span><span style=\"font-weight: 400;\">-type f<\/span><span style=\"font-weight: 400;\"> with additional tests such as <\/span><span style=\"font-weight: 400;\">-name<\/span><span style=\"font-weight: 400;\"> or <\/span><span style=\"font-weight: 400;\">-mtime<\/span><span style=\"font-weight: 400;\"> allows administrators to build more precise searches.<\/span><\/p>\n<p><b>Question: 289. Which <\/b><b>find<\/b><b> expression searches for files whose names match a specified shell-style pattern?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">-pattern<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">-name<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">-match<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">-filename<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. -name<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">find<\/span><span style=\"font-weight: 400;\"> option <\/span><span style=\"font-weight: 400;\">-name<\/span><span style=\"font-weight: 400;\"> compares the filename against a shell-style pattern. For example, <\/span><span style=\"font-weight: 400;\">find \/tmp -name &#8216;*.log&#8217;<\/span><span style=\"font-weight: 400;\"> searches for filenames ending in <\/span><span style=\"font-weight: 400;\">.log<\/span><span style=\"font-weight: 400;\">. The wildcard <\/span><span style=\"font-weight: 400;\">*<\/span><span style=\"font-weight: 400;\"> in this context is a shell-style pattern understood by <\/span><span style=\"font-weight: 400;\">find<\/span><span style=\"font-weight: 400;\">, rather than a regular expression. Quoting the pattern is important so that the current shell does not expand it before <\/span><span style=\"font-weight: 400;\">find<\/span><span style=\"font-weight: 400;\"> receives it. The <\/span><span style=\"font-weight: 400;\">-name<\/span><span style=\"font-weight: 400;\"> test normally performs a case-sensitive comparison. The related <\/span><span style=\"font-weight: 400;\">-iname<\/span><span style=\"font-weight: 400;\"> test performs a case-insensitive name comparison.<\/span><\/p>\n<p><b>Question: 290. Which <\/b><b>find<\/b><b> option can be used to locate files based on modification time measured in days?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">-date<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">-age<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">-mtime<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">-time<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. -mtime<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">find<\/span><span style=\"font-weight: 400;\"> test <\/span><span style=\"font-weight: 400;\">-mtime<\/span><span style=\"font-weight: 400;\"> searches according to the age of a file&#8217;s contents based on modification time, using periods measured in 24-hour units. For example, <\/span><span style=\"font-weight: 400;\">find \/var\/log -mtime +7<\/span><span style=\"font-weight: 400;\"> can be used to locate files whose modification time is more than seven days ago, subject to <\/span><span style=\"font-weight: 400;\">find<\/span><span style=\"font-weight: 400;\">&#8216;s day-rounding semantics. This is commonly useful for administration and cleanup tasks. Other time-related tests exist for access and metadata-change times, but <\/span><span style=\"font-weight: 400;\">-mtime<\/span><span style=\"font-weight: 400;\"> specifically concerns modification time. Administrators should understand the exact meaning of <\/span><span style=\"font-weight: 400;\">+<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">&#8211;<\/span><span style=\"font-weight: 400;\">, and numeric values when constructing time-based searches.<\/span><\/p>\n<p><b>Question: 291. Which <\/b><b>find<\/b><b> option allows an administrator to search for files according to their size?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">-length<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">-capacity<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">-bytes<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">-size<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4. -size<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">find<\/span> <span style=\"font-weight: 400;\">-size<\/span><span style=\"font-weight: 400;\"> test searches for filesystem objects based on their size. It can be useful when locating very large files or identifying files below a particular size threshold. Units can be specified so that searches can be expressed in terms such as bytes, kilobytes, megabytes, or other supported units. For example, a command can search for files larger than a specified size and combine that condition with <\/span><span style=\"font-weight: 400;\">-type f<\/span><span style=\"font-weight: 400;\">. This makes <\/span><span style=\"font-weight: 400;\">-size<\/span><span style=\"font-weight: 400;\"> particularly useful during disk-space investigations and routine system maintenance.<\/span><\/p>\n<p><b>Question: 292. Which <\/b><b>find<\/b><b> action executes a specified command for each matching result?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">-exec<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">-run<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">-command<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">-perform<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. -exec<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">-exec<\/span><span style=\"font-weight: 400;\"> action allows <\/span><span style=\"font-weight: 400;\">find<\/span><span style=\"font-weight: 400;\"> to execute another command for each object that matches the preceding search conditions. A common form uses <\/span><span style=\"font-weight: 400;\">{}<\/span><span style=\"font-weight: 400;\"> as a placeholder for the current pathname, followed by <\/span><span style=\"font-weight: 400;\">\\;<\/span><span style=\"font-weight: 400;\"> to terminate the action. For example, a search can identify files and then run another utility on each matching file. Because <\/span><span style=\"font-weight: 400;\">-exec<\/span><span style=\"font-weight: 400;\"> can perform potentially destructive operations such as deletion or modification, administrators should test search expressions carefully before applying changes. The action is particularly useful when the command needs to operate directly on each matched pathname.<\/span><\/p>\n<p><b>Question: 293. What command updates the database commonly used by the <\/b><b>locate<\/b><b> utility?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">locate-update<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">updatedb<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">refreshlocate<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">dbupdate<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. updatedb<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">updatedb<\/span><span style=\"font-weight: 400;\"> command is commonly used to build or update the database searched by the <\/span><span style=\"font-weight: 400;\">locate<\/span><span style=\"font-weight: 400;\"> utility. Unlike <\/span><span style=\"font-weight: 400;\">find<\/span><span style=\"font-weight: 400;\">, which normally examines the filesystem directly when the search is performed, <\/span><span style=\"font-weight: 400;\">locate<\/span><span style=\"font-weight: 400;\"> searches a previously generated database. This can make <\/span><span style=\"font-weight: 400;\">locate<\/span><span style=\"font-weight: 400;\"> very fast, but its results may not include files created or removed since the database was last updated. The exact scheduling and permissions surrounding <\/span><span style=\"font-weight: 400;\">updatedb<\/span><span style=\"font-weight: 400;\"> depend on the Linux distribution. Administrators should therefore understand that <\/span><span style=\"font-weight: 400;\">locate<\/span><span style=\"font-weight: 400;\"> provides database-based searching rather than a guaranteed real-time filesystem scan.<\/span><\/p>\n<p><b>Question: 294. What is a key characteristic of a symbolic link whose target has been removed?<\/b><\/p>\n<ol>\n<li><b><\/b><span style=\"font-weight: 400;\"> It automatically becomes a hard link<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b><span style=\"font-weight: 400;\"> It becomes an ordinary directory<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b><span style=\"font-weight: 400;\"> It becomes a dangling symbolic link<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b><span style=\"font-weight: 400;\"> It deletes every file in its directory<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. It becomes a dangling symbolic link<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">A symbolic link stores a pathname referring to another filesystem object. If that target is removed or moved so that the stored pathname no longer resolves to the intended object, the symbolic link becomes a dangling, or broken, symbolic link. The link itself can still exist in the filesystem even though its target cannot be followed successfully. This differs from a hard link, which directly references an inode and therefore generally remains valid as long as at least one hard link continues to reference that inode. Broken symbolic links can be identified and cleaned up during filesystem maintenance.<\/span><\/p>\n<p><b>Question: 295. What is a defining characteristic of hard links on a typical Unix filesystem?<\/b><\/p>\n<ol>\n<li><b><\/b><span style=\"font-weight: 400;\"> They always point to another pathname<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b><span style=\"font-weight: 400;\"> They share the same inode as the original file<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b><span style=\"font-weight: 400;\"> They can always cross filesystem boundaries<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b><span style=\"font-weight: 400;\"> They must point only to directories<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. They share the same inode as the original file<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">A hard link is another directory entry referring to the same inode as an existing file. Because the filenames reference the same underlying inode, changes made through one hard link are visible through the other. The inode also maintains a link count indicating how many directory entries reference it. Hard links normally cannot cross filesystem boundaries because the referenced inode belongs to a particular filesystem. They are also generally not created for directories by ordinary users because doing so could create filesystem hierarchy problems. Understanding inode sharing is essential when distinguishing hard links from symbolic links.<\/span><\/p>\n<p><b>Question: 296. Which <\/b><b>mount<\/b><b> option requests that a filesystem be mounted read-only?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">-o rw<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">-o safe<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">-o ro<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">-o lock<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. -o ro<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">-o ro<\/span><span style=\"font-weight: 400;\"> mount option requests that the filesystem be mounted read-only. A read-only mount prevents normal write operations through that mounted filesystem, which can be useful for protecting data, examining a filesystem, or mounting media where modifications are not desired. The contrasting <\/span><span style=\"font-weight: 400;\">-o rw<\/span><span style=\"font-weight: 400;\"> option requests read-write access. Mount behavior can also depend on filesystem type, kernel support, and other options. Read-only access should not be confused with Unix file permissions on individual files; mount options operate at the filesystem mount level.<\/span><\/p>\n<p><b>Question: 297. Which <\/b><b>ps<\/b><b> option combination is commonly used to request a full-format listing of processes?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">ps -ef<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">ps -xy<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">ps -df<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">ps -lfx<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. ps -ef<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">ps -ef<\/span><span style=\"font-weight: 400;\"> command is a commonly used form for displaying a full-format listing of running processes. The <\/span><span style=\"font-weight: 400;\">-e<\/span><span style=\"font-weight: 400;\"> option selects processes across the system, while <\/span><span style=\"font-weight: 400;\">-f<\/span><span style=\"font-weight: 400;\"> requests a full-format listing that includes useful fields such as user, process ID, parent process ID, start information, and the command. This makes the command useful when administrators need to inspect process relationships and identify which user started a process. Linux systems also support other <\/span><span style=\"font-weight: 400;\">ps<\/span><span style=\"font-weight: 400;\"> syntaxes, but <\/span><span style=\"font-weight: 400;\">ps -ef<\/span><span style=\"font-weight: 400;\"> is a widely recognized administrative form.<\/span><\/p>\n<p><b>Question: 298. Which process state generally indicates that a process has been stopped, for example by a job-control signal?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">R<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">Z<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">S<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">T<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4. T<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">In Linux process status information, <\/span><span style=\"font-weight: 400;\">T<\/span><span style=\"font-weight: 400;\"> generally indicates that a process is stopped or traced. A process can enter this state because of job-control signals such as those associated with suspending a foreground job, or because it is being traced. This differs from <\/span><span style=\"font-weight: 400;\">R<\/span><span style=\"font-weight: 400;\">, which indicates that the process is running or runnable, and <\/span><span style=\"font-weight: 400;\">S<\/span><span style=\"font-weight: 400;\">, which generally represents interruptible sleep. <\/span><span style=\"font-weight: 400;\">Z<\/span><span style=\"font-weight: 400;\"> indicates a zombie process whose execution has ended but whose parent has not yet collected its exit status. Understanding process states helps administrators diagnose stopped, sleeping, running, and terminated processes.<\/span><\/p>\n<p><b>Question: 299. Which shell command removes a job from the shell&#8217;s job table so that the shell no longer manages it as a job?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">detach<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">disown<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">release<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">forget<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. disown<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">disown<\/span><span style=\"font-weight: 400;\"> shell builtin removes jobs from the shell&#8217;s job table. This can be useful when an administrator wants a background process to stop being associated with the shell&#8217;s job-control mechanisms. Depending on the shell and options used, <\/span><span style=\"font-weight: 400;\">disown<\/span><span style=\"font-weight: 400;\"> can also help prevent the shell from sending certain notifications or signals to the job when the shell exits. It is different from <\/span><span style=\"font-weight: 400;\">kill<\/span><span style=\"font-weight: 400;\">, which sends signals to processes, and from <\/span><span style=\"font-weight: 400;\">bg<\/span><span style=\"font-weight: 400;\"> or <\/span><span style=\"font-weight: 400;\">fg<\/span><span style=\"font-weight: 400;\">, which manipulate the execution state of jobs. <\/span><span style=\"font-weight: 400;\">disown<\/span><span style=\"font-weight: 400;\"> is therefore primarily a job-control management command.<\/span><\/p>\n<p><b>Question: 300. Which shell builtin waits for one or more background processes to finish and returns their status?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">wait<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">pause<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">sleep<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">join<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. wait<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">wait<\/span><span style=\"font-weight: 400;\"> shell builtin allows a shell script or interactive shell to wait for one or more background processes to complete. When given a process ID or job-related identifier, it can wait for that particular process and obtain its exit status. With no specific identifier, it can wait for applicable asynchronous jobs managed by the shell. This is particularly important in scripts that launch several background operations but must ensure those operations finish before continuing. <\/span><span style=\"font-weight: 400;\">sleep<\/span><span style=\"font-weight: 400;\"> merely delays execution for a specified period, while <\/span><span style=\"font-weight: 400;\">wait<\/span><span style=\"font-weight: 400;\"> synchronizes execution with process completion.<\/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: 281. Which directory traditionally contains most user-level executable programs installed by the system? \/var\/lib 2. \/usr\/bin 3. \/etc 4. \/var\/log Correct Answer: 2. \/usr\/bin Explanation: The \/usr\/bin directory traditionally contains a large collection of executable programs intended for ordinary users and applications. Commands [&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\/18634"}],"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=18634"}],"version-history":[{"count":1,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18634\/revisions"}],"predecessor-version":[{"id":18635,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18634\/revisions\/18635"}],"wp:attachment":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/media?parent=18634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/categories?post=18634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/tags?post=18634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}