{"id":18622,"date":"2026-09-22T08:54:58","date_gmt":"2026-09-22T08:54:58","guid":{"rendered":"https:\/\/www.examlabs.com\/certification\/?p=18622"},"modified":"2026-09-22T08:54:58","modified_gmt":"2026-09-22T08:54:58","slug":"lpi-101-500-practice-test-questions-and-exam-dumps-part-8-q141-160","status":"publish","type":"post","link":"https:\/\/www.examlabs.com\/certification\/lpi-101-500-practice-test-questions-and-exam-dumps-part-8-q141-160\/","title":{"rendered":"LPI 101-500 Practice Test Questions and Exam Dumps Part 8 Q141-160"},"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: 141. Which command displays the current working directory?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">pwd<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">where<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">currentdir<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">cwd<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>1. <\/b><b>pwd<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">pwd<\/span><span style=\"font-weight: 400;\"> command prints the pathname of the current working directory. It is useful when a user needs to determine exactly where they are within the filesystem hierarchy, particularly when working with relative paths. The output normally represents the directory from which subsequent relative path operations are interpreted. Although some shells provide other mechanisms for accessing the current directory, <\/span><span style=\"font-weight: 400;\">pwd<\/span><span style=\"font-weight: 400;\"> is the standard command used for this purpose. The commands <\/span><span style=\"font-weight: 400;\">where<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">currentdir<\/span><span style=\"font-weight: 400;\">, and <\/span><span style=\"font-weight: 400;\">cwd<\/span><span style=\"font-weight: 400;\"> are not standard Linux commands that provide the same function. Knowing the current directory helps prevent mistakes when manipulating files.<\/span><\/p>\n<p><b>Question: 142. Which command changes the current working directory?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">move<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">cd<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">chdirfile<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">directory<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>2. <\/b><b>cd<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">cd<\/span><span style=\"font-weight: 400;\"> command changes the current working directory of the shell. For example, <\/span><span style=\"font-weight: 400;\">cd \/var\/log<\/span><span style=\"font-weight: 400;\"> moves the shell into the <\/span><span style=\"font-weight: 400;\">\/var\/log<\/span><span style=\"font-weight: 400;\"> directory, while <\/span><span style=\"font-weight: 400;\">cd ..<\/span><span style=\"font-weight: 400;\"> moves to the parent directory. Because <\/span><span style=\"font-weight: 400;\">cd<\/span><span style=\"font-weight: 400;\"> changes the state of the current shell, it is normally implemented as a shell builtin rather than as an ordinary external program. This distinction matters because an external program could not directly change the parent shell&#8217;s working directory. Understanding <\/span><span style=\"font-weight: 400;\">cd<\/span><span style=\"font-weight: 400;\">, absolute paths, and relative paths is fundamental to navigating the Linux filesystem from the command line.<\/span><\/p>\n<p><b>Question: 143. Which symbol represents the root directory in a Linux filesystem?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">~<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">\/<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">#<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>3. <\/b><b>\/<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The forward slash <\/span><span style=\"font-weight: 400;\">\/<\/span><span style=\"font-weight: 400;\"> represents the root directory of a Linux filesystem hierarchy. It is the starting point from which absolute paths are constructed. For example, <\/span><span style=\"font-weight: 400;\">\/etc\/hosts<\/span><span style=\"font-weight: 400;\"> identifies a specific location beginning at the root directory. This should not be confused with <\/span><span style=\"font-weight: 400;\">~<\/span><span style=\"font-weight: 400;\">, which commonly represents the current user&#8217;s home directory, or <\/span><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\">, which represents the current directory in a relative path. The root directory is also distinct from the root user account. Understanding these path symbols is essential for correctly navigating and referencing files in Linux.<\/span><\/p>\n<p><b>Question: 144. Which notation refers to the current directory in a relative pathname?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">..<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">\/<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">~<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>4. <\/b><b>.<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The single dot <\/span><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\"> represents the current directory in Linux pathname notation. It is commonly used when specifying a relative path or when explicitly referring to the directory in which a command is being executed. For example, <\/span><span style=\"font-weight: 400;\">.\/script.sh<\/span><span style=\"font-weight: 400;\"> attempts to execute a script located in the current directory. The double dot <\/span><span style=\"font-weight: 400;\">..<\/span><span style=\"font-weight: 400;\"> refers to the parent directory, <\/span><span style=\"font-weight: 400;\">\/<\/span><span style=\"font-weight: 400;\"> represents the root directory, and <\/span><span style=\"font-weight: 400;\">~<\/span><span style=\"font-weight: 400;\"> commonly expands to the current user&#8217;s home directory. Understanding these special path components allows users to construct accurate relative and absolute paths.<\/span><\/p>\n<p><b>Question: 145. Which command creates a new directory?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">newdir<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">mkdir<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">makedir<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">createdir<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>2. <\/b><b>mkdir<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">mkdir<\/span><span style=\"font-weight: 400;\"> command creates one or more directories. 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 command can also accept options such as <\/span><span style=\"font-weight: 400;\">-p<\/span><span style=\"font-weight: 400;\">, which allows intermediate parent directories to be created when necessary. Appropriate permissions are required for the location where the directory is being created. The commands <\/span><span style=\"font-weight: 400;\">newdir<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">makedir<\/span><span style=\"font-weight: 400;\">, and <\/span><span style=\"font-weight: 400;\">createdir<\/span><span style=\"font-weight: 400;\"> are not standard Linux utilities for this operation. Directory creation is a basic filesystem-management task and is frequently used when organizing files and application data.<\/span><\/p>\n<p><b>Question: 146. Which command removes an empty directory?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">rmdir<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">removedir<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">deldir<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">erase<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>1. <\/b><b>rmdir<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">rmdir<\/span><span style=\"font-weight: 400;\"> command removes directories that are empty. It is useful when cleaning up directory structures after their contents have already been removed or moved elsewhere. If a directory contains files or subdirectories, <\/span><span style=\"font-weight: 400;\">rmdir<\/span><span style=\"font-weight: 400;\"> normally refuses to remove it. The <\/span><span style=\"font-weight: 400;\">rm<\/span><span style=\"font-weight: 400;\"> command, with appropriate options, can remove directories and their contents, but it should be used carefully because recursive removal can permanently delete substantial amounts of data. Commands such as <\/span><span style=\"font-weight: 400;\">removedir<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">deldir<\/span><span style=\"font-weight: 400;\">, and <\/span><span style=\"font-weight: 400;\">erase<\/span><span style=\"font-weight: 400;\"> are not standard Linux commands for removing an empty directory.<\/span><\/p>\n<p><b>Question: 147. Which command copies files or directories from one location to another?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">move<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">duplicate<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">cp<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">copyfile<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>3. <\/b><b>cp<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">cp<\/span><span style=\"font-weight: 400;\"> command copies files and, with appropriate options, directories. For example, <\/span><span style=\"font-weight: 400;\">cp source.txt backup.txt<\/span><span style=\"font-weight: 400;\"> creates a copy of <\/span><span style=\"font-weight: 400;\">source.txt<\/span><span style=\"font-weight: 400;\"> under the new name <\/span><span style=\"font-weight: 400;\">backup.txt<\/span><span style=\"font-weight: 400;\">. Recursive options such as <\/span><span style=\"font-weight: 400;\">-r<\/span><span style=\"font-weight: 400;\"> or <\/span><span style=\"font-weight: 400;\">-R<\/span><span style=\"font-weight: 400;\"> can be used when copying directory trees, depending on the required behavior and implementation. Unlike <\/span><span style=\"font-weight: 400;\">mv<\/span><span style=\"font-weight: 400;\">, copying leaves the original object in place. This distinction is important when creating backups or duplicating files. The commands <\/span><span style=\"font-weight: 400;\">move<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">duplicate<\/span><span style=\"font-weight: 400;\">, and <\/span><span style=\"font-weight: 400;\">copyfile<\/span><span style=\"font-weight: 400;\"> are not standard replacements for the Linux <\/span><span style=\"font-weight: 400;\">cp<\/span><span style=\"font-weight: 400;\"> utility.<\/span><\/p>\n<p><b>Question: 148. Which command moves a file or directory to another location or renames it?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">mv<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">renamefile<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">shift<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">transfer<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>1. <\/b><b>mv<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">mv<\/span><span style=\"font-weight: 400;\"> command moves files and directories and can also be used to rename them. For example, <\/span><span style=\"font-weight: 400;\">mv old.txt new.txt<\/span><span style=\"font-weight: 400;\"> changes the name of a file, while <\/span><span style=\"font-weight: 400;\">mv report.txt \/tmp\/<\/span><span style=\"font-weight: 400;\"> moves it into another directory. When the source and destination are on the same filesystem, a move can often be accomplished by changing directory-entry information rather than copying the entire file contents. Unlike <\/span><span style=\"font-weight: 400;\">cp<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">mv<\/span><span style=\"font-weight: 400;\"> normally does not leave the original pathname pointing to the same file after a successful move. Care is needed when the destination already exists.<\/span><\/p>\n<p><b>Question: 149. Which command removes a file from the filesystem?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">deletefile<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">rm<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">erasefile<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">remove-file<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>2. <\/b><b>rm<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">rm<\/span><span style=\"font-weight: 400;\"> command removes files and, with suitable options, can remove directories and their contents. For example, <\/span><span style=\"font-weight: 400;\">rm example.txt<\/span><span style=\"font-weight: 400;\"> removes the specified file if the user has the required permissions. Unlike desktop environments with a recycle bin, standard <\/span><span style=\"font-weight: 400;\">rm<\/span><span style=\"font-weight: 400;\"> does not normally provide an automatic recovery mechanism, so users should verify paths carefully before executing destructive commands. Recursive removal should be used with particular caution. The commands <\/span><span style=\"font-weight: 400;\">deletefile<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">erasefile<\/span><span style=\"font-weight: 400;\">, and <\/span><span style=\"font-weight: 400;\">remove-file<\/span><span style=\"font-weight: 400;\"> are not standard Linux commands. Safe use of <\/span><span style=\"font-weight: 400;\">rm<\/span><span style=\"font-weight: 400;\"> is an important basic administration skill.<\/span><\/p>\n<p><b>Question: 150. Which command displays the contents of a text file directly in the terminal?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">show<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">readfile<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">cat<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">viewfile<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>3. <\/b><b>cat<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">cat<\/span><span style=\"font-weight: 400;\"> command reads files and writes their contents to standard output. It is commonly used for displaying short text files, combining multiple files, or feeding file contents into another command through a pipeline or redirection. For example, <\/span><span style=\"font-weight: 400;\">cat notes.txt<\/span><span style=\"font-weight: 400;\"> prints the contents of <\/span><span style=\"font-weight: 400;\">notes.txt<\/span><span style=\"font-weight: 400;\"> to the terminal. For large files, an interactive pager such as <\/span><span style=\"font-weight: 400;\">less<\/span><span style=\"font-weight: 400;\"> is usually more convenient because it allows navigation without flooding the terminal. The commands <\/span><span style=\"font-weight: 400;\">show<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">readfile<\/span><span style=\"font-weight: 400;\">, and <\/span><span style=\"font-weight: 400;\">viewfile<\/span><span style=\"font-weight: 400;\"> are not standard Linux replacements for <\/span><span style=\"font-weight: 400;\">cat<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><b>Question: 151. Which command changes the permissions of a file using symbolic or numeric notation?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">chmod<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">access<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">perm<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">setaccess<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>1. <\/b><b>chmod<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><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. It supports symbolic notation such as <\/span><span style=\"font-weight: 400;\">u+x<\/span><span style=\"font-weight: 400;\"> and numeric notation such as <\/span><span style=\"font-weight: 400;\">644<\/span><span style=\"font-weight: 400;\"> or <\/span><span style=\"font-weight: 400;\">755<\/span><span style=\"font-weight: 400;\">. These permissions control read, write, and execute access for the owner, group, and other users. For example, <\/span><span style=\"font-weight: 400;\">chmod 755 script.sh<\/span><span style=\"font-weight: 400;\"> commonly gives the owner full permissions while allowing group and other users to read and execute the file. <\/span><span style=\"font-weight: 400;\">chmod<\/span><span style=\"font-weight: 400;\"> does not change the file&#8217;s owner or group; those tasks are handled by ownership-related commands such as <\/span><span style=\"font-weight: 400;\">chown<\/span><span style=\"font-weight: 400;\"> and <\/span><span style=\"font-weight: 400;\">chgrp<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><b>Question: 152. Which permission allows the owner of a regular file to read its contents?<\/b><\/p>\n<ol>\n<li><b><\/b><span style=\"font-weight: 400;\"> Execute permission<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b><span style=\"font-weight: 400;\"> Write permission<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b><span style=\"font-weight: 400;\"> Read permission<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b><span style=\"font-weight: 400;\"> Search permission<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>3. Read permission<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Read permission allows a user to read the contents of a regular file. In symbolic permissions, read is represented by <\/span><span style=\"font-weight: 400;\">r<\/span><span style=\"font-weight: 400;\">. For example, a permission string containing <\/span><span style=\"font-weight: 400;\">r&#8211;<\/span><span style=\"font-weight: 400;\"> in the owner&#8217;s permission position indicates that the owner has read access but does not have write or execute permission. Write permission controls modification of file contents, while execute permission controls whether a regular file can be executed as a program or script when other requirements are satisfied. Directory permissions have somewhat different practical meanings, so file and directory access should not be treated as identical.<\/span><\/p>\n<p><b>Question: 153. What does the numeric permission value <\/b><b>7<\/b><b> represent for a file owner?<\/b><\/p>\n<ol>\n<li><b><\/b><span style=\"font-weight: 400;\"> Read and write only<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b><span style=\"font-weight: 400;\"> Read, write, and execute<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b><span style=\"font-weight: 400;\"> Execute only<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b><span style=\"font-weight: 400;\"> Write and execute only<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>2. Read, write, and execute<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">In numeric Unix permissions, the value <\/span><span style=\"font-weight: 400;\">7<\/span><span style=\"font-weight: 400;\"> represents the combination of read, write, and execute permissions. The values are calculated using bit values: read is 4, write is 2, and execute is 1. Therefore, <\/span><span style=\"font-weight: 400;\">4 + 2 + 1 = 7<\/span><span style=\"font-weight: 400;\">. A permission such as <\/span><span style=\"font-weight: 400;\">700<\/span><span style=\"font-weight: 400;\"> gives the owner read, write, and execute permissions while giving no permissions to the group or other users. Understanding these numeric values makes it easier to interpret and modify traditional Unix permission settings using <\/span><span style=\"font-weight: 400;\">chmod<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><b>Question: 154. Which command changes the owner of a file?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">chown<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">ownerchange<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">setowner<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">own<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>1. <\/b><b>chown<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">chown<\/span><span style=\"font-weight: 400;\"> command changes the user ownership of files and directories and can also specify group ownership. For example, an administrator can use <\/span><span style=\"font-weight: 400;\">chown alice document.txt<\/span><span style=\"font-weight: 400;\"> to change the owner to <\/span><span style=\"font-weight: 400;\">alice<\/span><span style=\"font-weight: 400;\">, subject to the system&#8217;s permission rules. It can also be used in forms such as <\/span><span style=\"font-weight: 400;\">chown alice:developers document.txt<\/span><span style=\"font-weight: 400;\"> to specify both owner and group. This command should be distinguished from <\/span><span style=\"font-weight: 400;\">chmod<\/span><span style=\"font-weight: 400;\">, which changes permission bits, and <\/span><span style=\"font-weight: 400;\">chgrp<\/span><span style=\"font-weight: 400;\">, which focuses specifically on group ownership. Ownership and permissions work together to determine access to filesystem objects.<\/span><\/p>\n<p><b>Question: 155. Which command displays a manual page containing documentation for a Linux command?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">helpdoc<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">manual<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">man<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">docs<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>3. <\/b><b>man<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">man<\/span><span style=\"font-weight: 400;\"> command displays manual pages containing documentation for commands, system calls, configuration files, and other system components. For example, <\/span><span style=\"font-weight: 400;\">man ls<\/span><span style=\"font-weight: 400;\"> opens the manual page for <\/span><span style=\"font-weight: 400;\">ls<\/span><span style=\"font-weight: 400;\">. Manual pages are organized into numbered sections, and the <\/span><span style=\"font-weight: 400;\">man<\/span><span style=\"font-weight: 400;\"> system provides a standardized source of local documentation on many Linux systems. Users can search within a manual page using the pager&#8217;s search functionality and can exit with the appropriate pager command. Although individual commands may also provide <\/span><span style=\"font-weight: 400;\">&#8211;help<\/span><span style=\"font-weight: 400;\"> output, <\/span><span style=\"font-weight: 400;\">man<\/span><span style=\"font-weight: 400;\"> provides more structured and detailed documentation.<\/span><\/p>\n<p><b>Question: 156. Which command displays the username associated with the current effective user identity?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">user<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">whoami<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">currentuser<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">loginname<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>2. <\/b><b>whoami<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">whoami<\/span><span style=\"font-weight: 400;\"> command prints the username associated with the current effective user ID. It is useful when working in environments where a user may have changed identities or when verifying which account is currently being used for command execution. This differs from commands such as <\/span><span style=\"font-weight: 400;\">who<\/span><span style=\"font-weight: 400;\">, which displays information about logged-in sessions, and <\/span><span style=\"font-weight: 400;\">id<\/span><span style=\"font-weight: 400;\">, which provides broader user and group identity information. <\/span><span style=\"font-weight: 400;\">whoami<\/span><span style=\"font-weight: 400;\"> is especially useful in scripts and administrative sessions when the effective identity needs to be confirmed before performing operations that depend on permissions.<\/span><\/p>\n<p><b>Question: 157. Which command displays information about currently running processes?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">procshow<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">processes<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">ps<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">running<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>3. <\/b><b>ps<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">ps<\/span><span style=\"font-weight: 400;\"> command displays information about processes running on the system. Depending on the options used, it can show process IDs, terminal associations, CPU or memory information, parent processes, command names, and other details. For example, different <\/span><span style=\"font-weight: 400;\">ps<\/span><span style=\"font-weight: 400;\"> option combinations can provide information about processes belonging to the current shell or processes running across the system. Unlike <\/span><span style=\"font-weight: 400;\">top<\/span><span style=\"font-weight: 400;\">, which provides a continuously updating interactive view, <\/span><span style=\"font-weight: 400;\">ps<\/span><span style=\"font-weight: 400;\"> normally produces a snapshot of process information. This makes it useful in scripts and one-time process investigations.<\/span><\/p>\n<p><b>Question: 158. Which command sends a signal to a process identified by its process ID?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">kill<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">stopprocess<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">terminate<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">signalpid<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>1. <\/b><b>kill<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">kill<\/span><span style=\"font-weight: 400;\"> command sends a specified signal to one or more processes identified by process ID. Despite its name, it is not limited to terminating processes. For example, <\/span><span style=\"font-weight: 400;\">kill -TERM 1234<\/span><span style=\"font-weight: 400;\"> sends the SIGTERM signal to process 1234, while other signals can be specified when appropriate. The default signal behavior depends on the implementation and command usage. Users need appropriate permissions to signal processes belonging to other users. The command should be used carefully because certain signals can immediately terminate processes without giving applications an opportunity to perform normal cleanup.<\/span><\/p>\n<p><b>Question: 159. Which command changes a process&#8217;s scheduling priority after the process is already running?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">nice<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">renice<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">priority<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">setnice<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. <\/b><b>renice<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">renice<\/span><span style=\"font-weight: 400;\"> command changes the nice value of an already running process. The nice value influences CPU scheduling priority, allowing administrators to adjust how aggressively a process competes for processor time. This differs from <\/span><span style=\"font-weight: 400;\">nice<\/span><span style=\"font-weight: 400;\">, which is normally used when starting a new command with an adjusted nice value. Permissions affect which priority changes a user is allowed to make, especially when attempting to give a process greater CPU priority. <\/span><span style=\"font-weight: 400;\">renice<\/span><span style=\"font-weight: 400;\"> can operate on process IDs and, depending on the implementation, may also support other selection methods such as process groups or users.<\/span><\/p>\n<p><b>Question: 160. Which environment variable commonly identifies the shell or command interpreter being used for the user&#8217;s login environment?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">$TERM<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">$PATH<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">$SHELL<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">$LOGIN<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer:<\/b> <b>3. <\/b><b>$SHELL<\/b><\/p>\n<p><b>Explanation:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">SHELL<\/span><span style=\"font-weight: 400;\"> environment variable commonly contains the pathname of the user&#8217;s preferred or configured command shell, such as <\/span><span style=\"font-weight: 400;\">\/bin\/bash<\/span><span style=\"font-weight: 400;\"> or another shell. It is useful when scripts or users need to identify the shell associated with the environment. <\/span><span style=\"font-weight: 400;\">$PATH<\/span><span style=\"font-weight: 400;\"> instead specifies directories searched for executable commands, <\/span><span style=\"font-weight: 400;\">$TERM<\/span><span style=\"font-weight: 400;\"> identifies the terminal type, and <\/span><span style=\"font-weight: 400;\">$LOGIN<\/span><span style=\"font-weight: 400;\"> is not the standard environment variable used for this purpose. The value of <\/span><span style=\"font-weight: 400;\">$SHELL<\/span><span style=\"font-weight: 400;\"> should not always be interpreted as proof of the exact shell currently executing every command, because processes can invoke other interpreters independently.<\/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: 141. Which command displays the current working directory? pwd 2. where 3. currentdir 4. cwd Correct Answer: 1. pwd Explanation: The pwd command prints the pathname of the current working directory. It is useful when a user needs to determine exactly where they [&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\/18622"}],"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=18622"}],"version-history":[{"count":1,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18622\/revisions"}],"predecessor-version":[{"id":18623,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18622\/revisions\/18623"}],"wp:attachment":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/media?parent=18622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/categories?post=18622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/tags?post=18622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}