nerdexam
CompTIA

220-1002 · Question #853

A technician is installing an application on a Linux system using the Bash shell console. Which of the following extensions should the technician select to install the application?

The correct answer is C. .sh. On Linux, shell scripts with a .sh extension are the standard way to execute installation procedures through the Bash shell console.

Hardware and network troubleshooting

Question

A technician is installing an application on a Linux system using the Bash shell console. Which of the following extensions should the technician select to install the application?

Options

  • A.exe
  • B.apk
  • C.sh
  • D.app

How the community answered

(54 responses)
  • A
    2% (1)
  • B
    4% (2)
  • C
    93% (50)
  • D
    2% (1)

Why each option

On Linux, shell scripts with a .sh extension are the standard way to execute installation procedures through the Bash shell console.

A.exe

.exe is a Windows Portable Executable format that is not natively executable on Linux without a compatibility layer such as Wine.

B.apk

.apk is the Android Package Kit format designed for the Android operating system, not desktop Linux.

C.shCorrect

A .sh file is a Bash shell script that contains commands to compile, configure, and install software on a Linux system. Technicians run these scripts in the terminal using 'bash script.sh' or by making them executable with chmod. This is a native Linux installation method supported across all major distributions.

D.app

.app is the macOS application bundle format and is not used for Linux software installation.

Concept tested: Linux application installation using shell scripts

Source: https://www.gnu.org/software/bash/manual/bash.html

Topics

#Linux#bash script#shell extension#application installation

Community Discussion

No community discussion yet for this question.

Full 220-1002 Practice