PowerShell
Best beginner shell on Windows. Strong scripting and object-oriented command output.
The terminal helps you move through folders, run tools, inspect your environment, create files, automate repetitive work, and start coding with confidence. This page starts from Windows PowerShell, then maps the same thinking to Linux, macOS, and Termux.
Best beginner shell on Windows. Strong scripting and object-oriented command output.
Common on Linux and macOS. Most internet shell examples assume this style.
Older Windows shell and batch scripting. Still useful to recognize, but not the best first choice.
mkdir intro-lab cd intro-lab "hello from powershell" | Set-Content hello.txt Get-ChildItem Get-Content hello.txt
mkdir intro-lab cd intro-lab echo "hello from shell" > hello.txt ls cat hello.txt
PowerShell: Get-ChildItem bash/zsh: ls
PowerShell: Get-Location bash/zsh: pwd
PowerShell: Get-Content file.txt bash/zsh: cat file.txt
PowerShell: "text" | Set-Content a.txt bash/zsh: echo "text" > a.txt
PowerShell: Remove-Item a.txt bash/zsh: rm a.txt
PowerShell: Move-Item a.txt notes\ bash/zsh: mv a.txt notes/
python --version git --version node --version
These commands tell you whether important tools are installed and reachable from your shell.
To inspect the current path:
PowerShell: $env:Path bash/zsh: echo $PATH
Windows batch file example hello.bat:
@echo off echo Hello from batch file pause
PowerShell script example hello.ps1:
Write-Host "Hello from PowerShell script"
bash script example hello.sh:
echo "Hello from bash script"
winget, or package managers.apt, dnf, pacman, or similar.brew.mkdir my-first-code cd my-first-code mkdir notes src "# My First Code Folder" | Set-Content README.md
bash/zsh version:
mkdir my-first-code cd my-first-code mkdir notes src echo "# My First Code Folder" > README.md
Then open the folder in your editor. This is where terminal, files, editor, and Git begin to work together.