LPI 010-160 Practice Test 64
Question 630
A student wants to see all `.txt` files using filename pattern expansion. If the team ignores the correct Globbing versus literal pattern approach, which problem is the MOST relevant direct risk?
- Listing `/var/log` is not equivalent to the user's current history list.
- Passing the wrong quoted form can make a command use a literal asterisk as a pathname.
- Assuming undocumented options exist can produce invalid command invocations.
- Checking the status after additional commands can inspect the wrong operation.
Explanation
Correct Answer
B:Passing the wrong quoted form can make a command use a literal asterisk as a pathname. Avoid the failure by following this action: Use `*.txt` unquoted for matching filenames and quote it when literal text is intended.
Incorrect Answers
A:That risk is associated with Shell history recall; it is less directly tied to the task.
C:Assuming undocumented options exist can produce invalid command invocations. That risk is associated with Command --help output; it is less directly tied to the task. The omitted Globbing versus literal pattern safeguard instead risks: passing the wrong quoted form can make a command use a literal asterisk as a pathname.
D:That risk is associated with Exit status from previous command; it is less directly tied to the task.
Question 631
A new user repeats commands in a Linux terminal and wants to inspect previous entries. If the team ignores the correct Terminal access and shell history approach, which problem is the MOST relevant direct risk?
- Hiding required GPL source on redistribution can violate the license.
- Typing a shell command into a browser search field does not execute it locally.
- Mistaking command history for permanent secure audit storage gives incomplete evidence.
- Reusing a breached password can compromise unrelated accounts.
Explanation
Correct Answer
C:Mistaking command history for permanent secure audit storage gives incomplete evidence. Avoid the failure by following this action: Use the shell history facility to inspect and reuse prior commands safely.
Incorrect Answers
A:Hiding required GPL source on redistribution can violate the license. That risk is associated with GPL copyleft obligations; it is less directly tied to the task. The omitted Terminal access and shell history safeguard instead risks: mistaking command history for permanent secure audit storage gives incomplete evidence.
B:That risk is associated with Graphical desktop versus command line; it is less directly tied to the task. The omitted Terminal access and shell history safeguard instead risks: mistaking command history for permanent secure audit storage gives incomplete evidence.
D:Reusing a breached password can compromise unrelated accounts. That risk is associated with Password manager and multifactor authentication; it is less directly tied to the task. The omitted Terminal access and shell history safeguard instead risks: mistaking command history for permanent secure audit storage gives incomplete evidence.
Question 632
A user can list a directory's name but cannot access a known child path. If the team ignores the correct Directory traversal execute permission approach, which problem is the MOST relevant direct risk?
- File read permission alone cannot bypass a nontraversable parent directory.
- Editing a current user's home does not change defaults for future users.
- Choosing 644 would allow other users to read the report.
- Misreading a group bit as an owner bit can lead to wrong access decisions.
Explanation
Correct Answer
A:File read permission alone cannot bypass a nontraversable parent directory. Avoid the failure by following this action: Ensure appropriate execute/search permission on each parent directory for the accessing class.
Incorrect Answers
B:Editing a current user's home does not change defaults for future users. That risk is associated with /etc/skel new home templates; it is less directly tied to the task. The omitted Directory traversal execute permission safeguard instead risks: file read permission alone cannot bypass a nontraversable parent directory.
C:Choosing 644 would allow other users to read the report. That risk is associated with chmod octal mode 640; it is less directly tied to the task. The omitted Directory traversal execute permission safeguard instead risks: file read permission alone cannot bypass a nontraversable parent directory.
D:Misreading a group bit as an owner bit can lead to wrong access decisions. That risk is associated with ls -l permission string interpretation; it is less directly tied to the task. The omitted Directory traversal execute permission safeguard instead risks: file read permission alone cannot bypass a nontraversable parent directory.
Question 633
A junior administrator sees an Ubuntu workstation and needs to select the native package family. If the team ignores the correct Debian-derived package family approach, which problem is the MOST relevant direct risk?
- Selecting RPM-specific tooling as the sole native interface will not manage Debian repositories.
- A generic desktop image for the wrong processor architecture may not boot.
- Installing untrusted code without reviewing access can expose files.
- Treating the Android UI as a standard Linux desktop misstates application compatibility.
Explanation
Correct Answer
A:Selecting RPM-specific tooling as the sole native interface will not manage Debian repositories. Avoid the failure by following this action: Choose Debian-family .deb packages with APT tools.
Incorrect Answers
B:A generic desktop image for the wrong processor architecture may not boot. That risk is associated with Raspberry Pi Linux deployment; it is less directly tied to the task. The omitted Debian-derived package family safeguard instead risks: selecting RPM-specific tooling as the sole native interface will not manage Debian repositories.
C:Installing untrusted code without reviewing access can expose files. That risk is associated with Privacy-conscious software selection; it is less directly tied to the task. The omitted Debian-derived package family safeguard instead risks: selecting RPM-specific tooling as the sole native interface will not manage Debian repositories.
D:Treating the Android UI as a standard Linux desktop misstates application compatibility. That risk is associated with Android Linux kernel relationship; it is less directly tied to the task. The omitted Debian-derived package family safeguard instead risks: selecting RPM-specific tooling as the sole native interface will not manage Debian repositories.
Question 634
A report must be writable by its owner, readable by its group, and inaccessible to others. If the team ignores the correct chmod octal mode 640 approach, which problem is the MOST relevant direct risk?
- Guessing permissions from displayed usernames alone can miss group membership.
- Misunderstanding the mask may expose newly created data.
- Assuming file write permission is sufficient for deletion leads to mistaken access analysis.
- Choosing 644 would allow other users to read the report.
Explanation
Correct Answer
D:Choosing 644 would allow other users to read the report. Avoid the failure by following this action: Run `chmod 640 report.txt`.
Incorrect Answers
A:Guessing permissions from displayed usernames alone can miss group membership. That risk is associated with id UID and group identity; it is less directly tied to the task. The omitted chmod octal mode 640 safeguard instead risks: choosing 644 would allow other users to read the report.
B:Misunderstanding the mask may expose newly created data. That risk is associated with umask default permission reduction; it is less directly tied to the task. The omitted chmod octal mode 640 safeguard instead risks: choosing 644 would allow other users to read the report.
C:Assuming file write permission is sufficient for deletion leads to mistaken access analysis. That risk is associated with Directory write and delete rights; it is less directly tied to the task. The omitted chmod octal mode 640 safeguard instead risks: choosing 644 would allow other users to read the report.
Question 635
A company redistributes a modified GPL-licensed program to customers. If the team ignores the correct GPL copyleft obligations approach, which problem is the MOST relevant direct risk?
- Treating their names and roles as interchangeable confuses licensing terminology.
- Installing untrusted code without reviewing access can expose files.
- Using arbitrary content terms for software can leave code-specific rights ambiguous.
- Hiding required GPL source on redistribution can violate the license.
Explanation
Correct Answer
D:Hiding required GPL source on redistribution can violate the license. Avoid the failure by following this action: Follow the applicable GPL requirements and make covered corresponding source available when distributing as required.
Incorrect Answers
A:Treating their names and roles as interchangeable confuses licensing terminology. That risk is associated with FSF versus OSI organizations; it is less directly tied to the task. The omitted GPL copyleft obligations safeguard instead risks: hiding required GPL source on redistribution can violate the license.
B:Installing untrusted code without reviewing access can expose files. That risk is associated with Privacy-conscious software selection; it is less directly tied to the task. The omitted GPL copyleft obligations safeguard instead risks: hiding required GPL source on redistribution can violate the license.
C:Using arbitrary content terms for software can leave code-specific rights ambiguous. That risk is associated with Creative Commons and software licensing; it is less directly tied to the task. The omitted GPL copyleft obligations safeguard instead risks: hiding required GPL source on redistribution can violate the license.
Question 636
A command and configuration file share the name `passwd` in documentation. If the team ignores the correct Manual sections for commands and config approach, which problem is the MOST relevant direct risk?
- Guessing random command names may miss the indexed help.
- Using a log directory as the only documentation source can miss package instructions.
- Reading a command synopsis as a file-format specification causes confusion.
- Noninteractive deletion can remove the wrong file without prompting.
Explanation
Correct Answer
C:Reading a command synopsis as a file-format specification causes confusion. Avoid the failure by following this action: Specify the manual section, for example `man 5 passwd`, when the subject is the file format.
Incorrect Answers
A:Guessing random command names may miss the indexed help. That risk is associated with Keyword manual search; it is less directly tied to the task. The omitted Manual sections for commands and config safeguard instead risks: reading a command synopsis as a file-format specification causes confusion.
B:Using a log directory as the only documentation source can miss package instructions. That risk is associated with /usr/share/doc documentation directory; it is less directly tied to the task. The omitted Manual sections for commands and config safeguard instead risks: reading a command synopsis as a file-format specification causes confusion.
D:Noninteractive deletion can remove the wrong file without prompting. That risk is associated with rm interactive deletion; it is less directly tied to the task. The omitted Manual sections for commands and config safeguard instead risks: reading a command synopsis as a file-format specification causes confusion.
Question 637
A student needs the manual entry for the `ls` utility. If the team ignores the correct man pages and sections approach, which problem is the MOST relevant direct risk?
- Assuming undocumented options exist can produce invalid command invocations.
- Treating option flags as pathnames changes the operation.
- Using a process monitor does not display the command's manual.
- Recently created files may be missing until the index is refreshed.
Explanation
Correct Answer
C:Using a process monitor does not display the command's manual. Avoid the failure by following this action: Run `man ls` to open the appropriate manual page.
Incorrect Answers
A:Assuming undocumented options exist can produce invalid command invocations. That risk is associated with Command --help output; it is less directly tied to the task. The omitted man pages and sections safeguard instead risks: using a process monitor does not display the command's manual.
B:Treating option flags as pathnames changes the operation. That risk is associated with Bash command and argument structure; it is less directly tied to the task. The omitted man pages and sections safeguard instead risks: using a process monitor does not display the command's manual.
D:Recently created files may be missing until the index is refreshed. That risk is associated with locate database lookup; it is less directly tied to the task. The omitted man pages and sections safeguard instead risks: using a process monitor does not display the command's manual.
Question 638
A user needs to remove an unneeded text file but wants a confirmation prompt. If the team ignores the correct rm interactive deletion approach, which problem is the MOST relevant direct risk?
- Creating a directory instead of a file changes the expected object type.
- Treating option flags as pathnames changes the operation.
- Noninteractive deletion can remove the wrong file without prompting.
- Using `cp` leaves the original behind when a move was required.
Explanation
Correct Answer
C:Noninteractive deletion can remove the wrong file without prompting. Avoid the failure by following this action: Use `rm -i filename` for an interactive confirmation before removal.
Incorrect Answers
A:Creating a directory instead of a file changes the expected object type. That risk is associated with touch empty files and timestamps; it is less directly tied to the task. The omitted rm interactive deletion safeguard instead risks: noninteractive deletion can remove the wrong file without prompting.
B:Treating option flags as pathnames changes the operation. That risk is associated with Bash command and argument structure; it is less directly tied to the task. The omitted rm interactive deletion safeguard instead risks: noninteractive deletion can remove the wrong file without prompting.
D:Using `cp` leaves the original behind when a move was required. That risk is associated with mv rename and relocation; it is less directly tied to the task. The omitted rm interactive deletion safeguard instead risks: noninteractive deletion can remove the wrong file without prompting.
Question 639
A directory named `old-empty` has no children and needs deletion. If the team ignores the correct rmdir versus nonempty directories approach, which problem is the MOST relevant direct risk?
- Trying to remove a populated tree this way fails rather than erasing its contents.
- Copying only one file will not preserve child directories.
- Using `cp` leaves the original behind when a move was required.
- Choosing a recursive option does not alone guarantee long-format columns.
Explanation
Correct Answer
A:Trying to remove a populated tree this way fails rather than erasing its contents. Avoid the failure by following this action: Use `rmdir old-empty` for the empty directory.
Incorrect Answers
B:Copying only one file will not preserve child directories. That risk is associated with cp -r directory trees; it is less directly tied to the task. The omitted rmdir versus nonempty directories safeguard instead risks: trying to remove a populated tree this way fails rather than erasing its contents.
C:Using `cp` leaves the original behind when a move was required. That risk is associated with mv rename and relocation; it is less directly tied to the task. The omitted rmdir versus nonempty directories safeguard instead risks: trying to remove a populated tree this way fails rather than erasing its contents.
D:Choosing a recursive option does not alone guarantee long-format columns. That risk is associated with ls -l file metadata; it is less directly tied to the task. The omitted rmdir versus nonempty directories safeguard instead risks: trying to remove a populated tree this way fails rather than erasing its contents.
Question 640
A trainee writes `ls -l /tmp` and asks which token changes the listing format. If the team ignores the correct Bash command and argument structure approach, which problem is the MOST relevant direct risk?
- Passing the wrong quoted form can make a command use a literal asterisk as a pathname.
- Treating option flags as pathnames changes the operation.
- Confusing home with `/` changes the destination.
- Using the file viewer cannot reveal all shell alias resolution paths.
Explanation
Correct Answer
B:Treating option flags as pathnames changes the operation. Avoid the failure by following this action: Treat `ls` as the command, `-l` as the option and `/tmp` as its argument.
Incorrect Answers
A:Passing the wrong quoted form can make a command use a literal asterisk as a pathname. That risk is associated with Globbing versus literal pattern; it is less directly tied to the task. The omitted Bash command and argument structure safeguard instead risks: treating option flags as pathnames changes the operation.
C:Confusing home with `/` changes the destination. That risk is associated with Home directory shorthand; it is less directly tied to the task. The omitted Bash command and argument structure safeguard instead risks: treating option flags as pathnames changes the operation.
D:Using the file viewer cannot reveal all shell alias resolution paths. That risk is associated with type and builtin identification; it is less directly tied to the task. The omitted Bash command and argument structure safeguard instead risks: treating option flags as pathnames changes the operation.