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).
switch bash
bash
change-cli bash
pwsh
Correct answers
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.