Recall & Review
beginner
What is PowerShell primarily used for?
PowerShell is a task automation and configuration management framework from Microsoft, mainly used for managing Windows systems but also supports Linux and macOS.
Click to reveal answer
beginner
How does Bash differ from CMD in terms of platform support?
Bash is mainly used on Unix-like systems such as Linux and macOS, while CMD is a Windows-only command-line interpreter.
Click to reveal answer
intermediate
Which shell supports object-based output instead of plain text?
PowerShell outputs objects, allowing more complex data manipulation, unlike Bash and CMD which output plain text.
Click to reveal answer
beginner
What is a common scripting language used in Bash?
Bash scripts use shell scripting language, which includes commands, loops, and conditionals designed for Unix-like systems.
Click to reveal answer
intermediate
Why might someone choose PowerShell over CMD?
PowerShell offers advanced scripting capabilities, access to .NET libraries, and object-based output, making it more powerful and flexible than CMD.
Click to reveal answer
Which shell is native to Windows and supports object-based output?
✗ Incorrect
PowerShell is native to Windows and outputs objects, unlike CMD which outputs text.
Which shell is primarily used on Unix-like systems?
✗ Incorrect
Bash is the default shell on most Unix-like systems such as Linux and macOS.
Which shell is considered the most basic and limited in scripting on Windows?
✗ Incorrect
CMD is the traditional Windows command prompt with limited scripting compared to PowerShell.
Which shell allows direct access to .NET libraries?
✗ Incorrect
PowerShell can access .NET libraries, enabling powerful scripting and automation.
Which shell outputs plain text instead of objects?
✗ Incorrect
Both Bash and CMD output plain text, unlike PowerShell which outputs objects.
Explain the main differences between PowerShell, Bash, and CMD in terms of platform support and output type.
Think about where each shell runs and how they handle command output.
You got /5 concepts.
Describe why PowerShell might be preferred over CMD for scripting on Windows.
Consider scripting power and integration capabilities.
You got /4 concepts.