PowerShell Basics
Start with PowerShell Get-Location and Get-ChildItem.
Start Interactive LessonPowerShell Basics
Welcome to PowerShell! Microsoft's powerful command-line shell brings object-oriented programming to the terminal. In this lesson, you'll learn the foundational commands for navigating PowerShell.
Finding Your Location
In PowerShell, cmdlets (command-lets) follow a Verb-Noun naming convention. Get-Location tells you where you are in the file system.
Real-World Examples
Find your current path:
Listing Items with Get-ChildItem
To see what's in your current directory, use Get-ChildItem. It shows all files and folders.
See your files and folders:
PowerShell's Verb-Noun Convention
Notice how PowerShell commands are self-documenting? Get-Location clearly gets your location, and Get-ChildItem gets child items. This pattern makes PowerShell intuitive once you learn the common verbs.
Knowledge Check
1 / 3What cmdlet shows your current directory?
References
These Microsoft Learn and Windows documentation links provide authoritative details for the commands used in this article.