⭐ 0🔥 0🏆 0 pts

For grown-ups and teens meeting Windows commands for the first time

Talk to your PC in words: PowerShell for beginners

PowerShell for beginners starts with one plain fact: PowerShell is a shell that comes with Windows, a program that carries out the commands you type and names each of its own commands for what it does.

Quick answer

  • Already on your PC: Windows includes Windows PowerShell 5.1.
  • Open it normally. Nothing on this page needs Run as administrator.
  • Names read like instructions: Verb-Noun, as in Get-ChildItem.
  • Stuck? help and Get-Command find answers; -WhatIf rehearses a change.

This practice box imitates Windows PowerShell on a made-up disk, so nothing here can reach your own files. Run the five commands in order to ask where you are, look around, step into images, step back out, then get help on copy.

⌨️ Practice terminal
Try:

Two products, one name: which PowerShell you have

A shell is the program that runs your commands and shows the result, much as you might talk to the waiter rather than point at the menu. Microsoft makes two separate products with almost the same name.

Windows PowerShell ships inside Windows. Its latest version, 5.1, arrived in August 2016 with the Windows 10 Anniversary Update. It gets no new features, and its support is tied to your version of Windows.

PowerShell 7 is the one you install yourself. It works on Windows, macOS and Linux, and its program is called pwsh. As of November 2026, Microsoft’s lifecycle page lists 7.6 as the long-term support release, supported until 14 November 2028.

You need not choose yet: every command on this page works in the copy already on your PC.

PowerShell or CMD? · What is a terminal?

Opening it, with no admin rights

Open the Start menu, type Windows PowerShell, select it, then choose Open. The line where the cursor waits, such as PS C:\Users\you>, is the prompt: PS marks PowerShell, then comes the folder you are standing in, and your command goes after the >.

Skip Run as administrator. Nothing on this page needs it, and less power means smaller slips. Leave the execution policy alone too, whatever some tutorials say. For Windows PowerShell 5.1, Microsoft says the default on Windows client computers, Restricted, still permits individual commands and blocks only script files.

Reading Verb-Noun names

PowerShell’s own commands are called cmdlets (“command-lets”), and each name is a verb, a dash and a singular noun. Microsoft says the verb identifies the action and the noun the thing acted on. The verb is a warning light as well: Get retrieves, Remove deletes. On a real PC, Get-Verb lists every approved verb.

A child item is anything inside a folder, the way a drawer can hold things and smaller drawers. These five come first:

Full nameWhat it doesShort names (Windows)
Get-ChildItemLists what is in a folderdir, ls, gci
Set-LocationMoves you into a foldercd, chdir, sl
New-ItemMakes a file or folderni
Copy-ItemCopies a file or foldercopy, cp, cpi
Remove-ItemDeletes, skipping the Recycle Binrm, del, ri, erase, rd, rmdir

Aliases: the short names

Aliases are nicknames that run a cmdlet. Microsoft added familiar ones for people who know Command Prompt or Unix, so on Windows both dir and ls run Get-ChildItem. Those aliases are Windows-specific: in PowerShell 7 on macOS or Linux, ls is not an alias, so the computer’s own ls program runs instead of Get-ChildItem.

Get-Alias ls reveals the cmdlet behind a nickname, in the box above and on a real PC. Use aliases at the prompt but full names in scripts: Microsoft says aliases make code harder to read.

Lesson 19: Dialects: PowerShell, CMD, Mac

Getting help from the shell itself

Nobody memorises every command. Microsoft’s PowerShell 101 book calls Get-Help, Get-Command and Get-Member the three core cmdlets. Four moves answer most questions:

  • help copy shows the help for Copy-Item a page at a time: Space for the next page, Q to quit.
  • On a real PC, Get-Command -Noun Item lists commands whose noun is Item, such as Copy-Item and Remove-Item.
  • help Copy-Item -Online opens the newest version in your browser. Windows PowerShell 5.1 ships without its full help files, and Microsoft says downloading them in 5.1 needs an administrator window, so read online.
  • -WhatIf makes a command describe a change instead of making it. After rm notes.txt -WhatIf, the file is still there.

Lesson 18: Commands have parts · PowerShell cheat sheet

Safe habits from your first day

  • Run pwd and dir before changing anything. A path is a home address, and one wrong letter means the wrong house.
  • Rehearse risky commands with -WhatIf first.
  • Treat delete as final. Remove-Item, rm and del skip the Recycle Bin, so copy precious files first.
  • Never paste a command you cannot explain, whether it came from a forum, a video or an AI chat. It runs as you, on your files.
  • Leave admin windows, system settings and the execution policy alone while you learn.
  • Press Ctrl+C to stop a command that keeps running.

Lesson 17: Delete carefully · Lesson 21: Stop signs

Next steps: Levels 2 and 3

Level 2 of the free DayOneCode course practises pwd, dir and ls, cd, making, writing and reading files, and the Tab and arrow tricks. Level 3 adds copy, move, rename, careful deletes, aliases, error messages and stop signs, all in a pretend PowerShell with no account.

Shaky on paths? Start at Paths: every file has an address. For speed, play Command Racer.

See all ten levels · Open the practice terminal

Questions and answers

How can a beginner learn PowerShell?

Learn a few commands well before collecting more: pwd, dir, cd, copy, move, rm with -WhatIf, and help. Practise where a slip costs nothing, such as a pretend terminal or a test folder, and learn to look commands up rather than memorise them.

Is PowerShell easy to learn?

The start is gentle: commands are whole words, the names follow one Verb-Noun pattern, and help explains each one. Scripts that automate whole jobs take longer, as any programming does, but a dozen commands already let you move around, make, copy and delete.

How do I start PowerShell on Windows?

Open the Start menu, enter Windows PowerShell, select it and pick Open, not the administrator option. When a line starting with PS and ending with > appears, PowerShell is waiting for you; try pwd first.

Is PowerShell easier than Python?

They do different jobs. PowerShell shines at files, folders and Windows itself; Python is a general programming language for games, data and websites. Knowing a few commands helps either way, because a Python file is often run from a terminal with python hello.py.

Do I need PowerShell 7 to learn?

No. Windows PowerShell 5.1 comes with Windows and handles everything a beginner does. PowerShell 7 is a separate install that also runs on macOS and Linux and still gets new features; add it when a tool you use asks for it.

Can PowerShell damage my computer?

It can do whatever your account may do, including deleting files for good, since Remove-Item and its short names skip the Recycle Bin. Look first with dir, rehearse with -WhatIf and stay out of administrator windows. The practice terminal here is pretend, so it cannot harm anything.

Sources

The facts on this page were checked against these pages (14 November 2026):

More guides

DayOneCode is an independent learning site, not affiliated with or endorsed by Anthropic. Claude and Claude Code are trademarks of Anthropic.