PowerShell - Cross-Platform PowerShellWhy does PowerShell on macOS use the 'pwsh' command instead of 'powershell' like on Windows?A'pwsh' is an alias created by the userB'powershell' is reserved for Windows onlyCmacOS does not support the 'powershell' commandD'pwsh' is the cross-platform PowerShell Core executable nameCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand PowerShell Core namingPowerShell Core is cross-platform and uses 'pwsh' as its executable name on macOS and Linux.Step 2: Clarify Windows vs macOS namingWindows PowerShell uses 'powershell', but cross-platform version uses 'pwsh' to avoid conflicts.Final Answer:'pwsh' is the cross-platform PowerShell Core executable name -> Option DQuick Check:Cross-platform PowerShell = pwsh executable [OK]Quick Trick: Remember 'pwsh' is PowerShell Core's cross-platform name [OK]Common Mistakes:Thinking 'powershell' is supported on macOSAssuming 'pwsh' is user aliasBelieving macOS blocks 'powershell' command
Master "Cross-Platform PowerShell" in PowerShell9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More PowerShell Quizzes Active Directory - Organizational unit operations - Quiz 3easy Active Directory - AD module installation - Quiz 9hard Active Directory - AD module installation - Quiz 5medium Active Directory - New-ADUser and Set-ADUser - Quiz 6medium Cross-Platform PowerShell - Platform-specific considerations - Quiz 14medium Cross-Platform PowerShell - Platform-specific considerations - Quiz 13medium Remote Management - Why remote execution scales management - Quiz 8hard Remote Management - Invoke-Command - Quiz 5medium Scripting Best Practices - Pester testing framework basics - Quiz 13medium Scripting Best Practices - Verbose and debug output - Quiz 8hard