220-1102 exam dumps

220-1102 practice question 233 of 828

A+ Core 2. Associate level, CompTIA. Free question with the correct answer and a full explanation.

220-1102 Question 233

Single answer1.9 Identify common features and tools of the Linux client/desktop operating system.

A help desk technician is supporting a user on an Ubuntu desktop who says a recently downloaded script will not run by double-clicking it in the file manager. The technician verifies the file is present in the user's Downloads folder and that the script contents are correct. To make the script runnable from the Linux desktop or terminal without editing the script itself, which action should the technician take?

  1. A

    Use chmod +x on the script file to add the execute permission

  2. B

    Use chown to change the script owner to root

  3. C

    Use grep to search the script for syntax errors

  4. D

    Use apt install to reinstall the default file manager

  5. E

    Use ps to confirm the script is running in the background

Show answer and explanation

Correct answer: A

Explanation

This question tests practical use of common Linux desktop and command-line tools. In Linux, downloaded scripts often need executable permission before they can be run directly. The standard command is chmod +x filename, which sets the execute bit. This aligns with common Linux administration practice and desktop troubleshooting on distributions such as Ubuntu. By contrast, chown manages ownership, grep searches text, apt handles packages, and ps views processes. For A+ Core 2 objective 1.9, candidates should recognize common Linux tools and their practical uses, including file permissions and commands used on client/desktop systems. Reference concepts can be found in the GNU coreutils documentation for chmod and standard Linux file permission documentation used across major distributions.

  • A. Correct.

    Correct. On Linux, a script must have the execute bit set before it can be run directly as a program from a terminal or many desktop file managers. The chmod +x command adds executable permission to the file, which is the standard fix when a valid script exists but is not runnable.

  • B. Incorrect.

    Incorrect. chown changes file ownership, not whether a file is executable. Making root the owner would not by itself allow the current user to run the script, and changing ownership to root is not an appropriate first step for a user-downloaded desktop script.

  • C. Incorrect.

    Incorrect. grep is used for searching text patterns within files. Although script syntax problems can prevent successful execution, the scenario states the script contents are correct. The issue described is that the file will not run directly, which points to permissions rather than script content.

  • D. Incorrect.

    Incorrect. apt is the package management tool used to install, remove, or update software packages on Debian-based distributions such as Ubuntu. Reinstalling the file manager would not address a missing execute permission on a single downloaded script.

  • E. Incorrect.

    Incorrect. ps displays information about running processes. If the script cannot be started by double-clicking it, checking whether it is already running does not solve the permission problem described in the scenario.

Timed practice exam

Take a 220-1102 practice test under exam conditions

90 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam