Skip to main content
  1. Public practice questions
  2. AZ-900 Practice Exams | Azure Fundamentals
  3. Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions

Question 398 — Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions

You have been using the PowerShell CLI in the Learn sandbox, and you need to switch to BASH CLI to run a specific script written in BASH. Which command should you use to switch from PowerShell to BASH? (Select one answer).

  1. switch bash

  2. bash

  3. change-cli bash

  4. pwsh

Correct answers

  1. bash

Explanations

Correct:
bash
Typing bash in PowerShell switches the CLI to BASH mode, allowing you to run scripts written in BASH.

Wrong:
switch bash
This is not a valid command in PowerShell for switching to BASH.
change-cli bash
This is not a recognized command for changing CLI modes.
pwsh
This command is used to switch to PowerShell, not BASH.