PowerShell - Cross-Platform PowerShellWhat is the default shell environment when you run PowerShell on a Linux system?AZsh shellBPowerShell Core (pwsh)CBash shellDFish shellCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand PowerShell on Linux environmentPowerShell on Linux runs as PowerShell Core, which is cross-platform and invoked by the command 'pwsh'.Step 2: Differentiate from native Linux shellsBash, Zsh, and Fish are native Linux shells, but PowerShell on Linux uses its own shell environment.Final Answer:PowerShell Core (pwsh) -> Option BQuick Check:Default shell = PowerShell Core (pwsh) [OK]Quick Trick: PowerShell on Linux runs with 'pwsh' command by default [OK]Common Mistakes:Confusing PowerShell with Bash shellAssuming Linux default shells run PowerShell commandsThinking PowerShell uses Bash syntax by default
Master "Cross-Platform PowerShell" in PowerShell9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More PowerShell Quizzes Active Directory - AD module installation - Quiz 7medium Active Directory - Bulk user operations from CSV - Quiz 7medium Active Directory - Group management - Quiz 14medium Automation Patterns - Configuration drift detection - Quiz 10hard Cross-Platform PowerShell - REST API calls with Invoke-RestMethod - Quiz 4medium Remote Management - SSH-based remoting (PowerShell 7+) - Quiz 9hard Scripting Best Practices - Code signing - Quiz 11easy System Administration - Windows features management - Quiz 15hard System Administration - Environment variables - Quiz 4medium System Administration - Scheduled task management - Quiz 7medium