★★★★★ 5.0 Google‑verified · 20 reviews
Tech Tips With Adam · Free cheat sheet

Windows Command Prompt Cheat Sheet

Every command from the Tech Tips With Adam CMD series on one page: find lost files, map your folders, see what's running, fix DNS and check your PC — all built into Windows.

13 commands→copy & paste→Free printable PDF
C:\> where /r C:\ report.pdf
C:\> tree /f > tree.txt
C:\> tasklist
C:\> ipconfig /flushdns
C:\> systeminfo_

This is the cheat sheet from the Tech Tips With Adam Command Prompt Shorts — every command from the series on one page, with what it does and a link to the video that shows it. They are all built into Windows 10 and Windows 11; there is nothing to download or install.

Open Command Prompt (Windows key, type cmd, Enter), copy a command, change the file name to yours, and press Enter. None of these change or delete anything — they only look and report.

01Find files

Lost a file and Windows search is crawling? These find it from the command line.

where /r C:\ report.pdf

Searches every folder on C: for that file and prints the full path.

▶ Watch the Short
where /r %USERPROFILE% report*.pdf

Faster: only your own folders. * matches any characters.

▶ Watch the Short
dir /s /b *.jpg *.png

Lists every matching file with its full path. /s = subfolders, /b = paths only.

▶ Watch the Short
forfiles /s /m *.* /c "cmd /c if @fsize GTR 104857600 echo @path"

Finds files bigger than 100 MB (104,857,600 bytes) - great for freeing up space.

▶ Watch the Short
findstr /s /i /n "invoice" *.txt

Searches INSIDE files for text. /i ignores case, /n shows line numbers.

▶ Watch the Short

02See your folders

Get a map of what is inside a folder.

tree /f

Draws every folder and file as a tree (the one that looks like The Matrix).

▶ Watch the Short
tree /f > tree.txt

Saves the whole tree to a text file you can open, search or send.

▶ Watch the Short
tree /f | findstr /i "\.txt$"

Shows only files ending in .txt. Swap .txt for .docx, .pdf, .log...

▶ Watch the Short

03Your PC and network

Quick answers about what your PC is doing.

tasklist

Every running program, its process ID (PID) and memory use.

▶ Watch the Short
ipconfig

Your PC's IP address, and your router's (Default Gateway).

▶ Watch the Short
ipconfig /flushdns

Clears saved website lookups. Try it when one site won't load but works on your phone.

▶ Watch the Short
systeminfo

Windows version, PC model, CPU and RAM. Takes a few seconds.

▶ Watch the Short
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"

Just the Windows name and version.

▶ Watch the Short

04Handy tricks

Open itPress the Windows key, type cmd, press Enter.
Stop a commandCtrl + C cancels anything that is taking too long.
Repeat a commandPress the Up arrow to bring back what you last typed.
Less typingPress Tab to finish a file or folder name for you.
Clear the screenType cls and press Enter.
Save any outputAdd > results.txt to the end of a command to save what it prints.

Rather someone just sorted it?

Lost files, a slow PC or a network that won't behave — AYVAtech covers Penrith & Western Sydney, onsite or remote.

Commands tested on Windows 11. Searching the whole C: drive can take a minute or two — press Ctrl + C to stop it early.