Terminal Command Cheatsheet for Windows Users

A quick-reference table of essential terminal commands with Windows equivalents — navigation, file management, permissions, networking, and more.

Beginner Updated 1 min read Tested on Linux Mint 22.3 Cinnamon (Ubuntu 24.04 Noble base); also tested on Zorin OS 18.1 Pro Hardware Lenovo ThinkPad L14 Gen 2 (Intel i5-1135G7, 16GB RAM, Intel Iris Xe, 1366x768)

Open a terminal with Ctrl+Alt+T on most Ubuntu-based desktops. The terminal is your most powerful tool — don’t be afraid of it.

This is a quick-reference card. For in-depth explanations with real examples, see the Filesystem Hierarchy guide and the external learning resources collection.


CommandWhat It DoesWindows Equivalent
pwdPrint current directoryTyping path in Explorer address bar
lsList filesdir
ls -laList all files including hidden, with detailsdir /a
cd /pathChange directorycd \path
cd ~ or just cdGo to home directorycd %USERPROFILE%
cd ..Go up one directorysame
cd -Go to previous directoryno equivalent

File Operations

CommandWhat It DoesWindows Equivalent
cp source destCopy filecopy
cp -r source destCopy directory recursivelyxcopy
mv source destMove/renamemove / ren
rm fileDelete filedel
rm -rf directoryDelete directory and everything inside (dangerous!)rmdir /s
mkdir -p path/to/dirCreate directory (and parents)mkdir
touch fileCreate empty file or update timestampno equivalent
cat filePrint file contentstype
head -n 20 fileShow first 20 linesno equivalent
tail -n 20 fileShow last 20 linesno equivalent
tail -f fileFollow file updates in real-time (logs)no equivalent

Finding Things

CommandWhat It DoesWindows Equivalent
find /path -name "*.txt"Find files by nameSearch in Explorer
grep "text" fileSearch inside filesfindstr
grep -r "text" /pathSearch recursivelyfindstr /s
which commandFind where a command liveswhere
locate filenameFast file search (needs sudo updatedb first)Everything search

System Info

CommandWhat It DoesWindows Equivalent
uname -aSystem infosysteminfo
hostnameComputer namehostname
df -hDisk spaceno equivalent
free -hMemory usageTask Manager
htopInteractive process viewerTask Manager
lscpuCPU infoTask Manager Details
sensorsTemperature sensorsno equivalent
uptimeHow long system has been runningsysteminfo | find "Boot Time"

Package Management (apt)

CommandWhat It DoesWindows Equivalent
sudo apt updateRefresh package listCheck for Updates
sudo apt upgrade -yInstall all updatesWindows Update
sudo apt install packageInstall softwareDownload .exe + run
sudo apt remove packageUninstall softwarePrograms & Features
sudo apt remove --purge packageUninstall + remove configno equivalent
sudo apt autoremoveRemove unused dependenciesno equivalent
apt search keywordSearch for packagesMicrosoft Store search
dpkg -l | grep keywordCheck if package is installedno equivalent

Permissions

CommandWhat It DoesWindows Equivalent
chmod +x fileMake file executableno direct equivalent
chmod 755 fileSet full permissionsProperties > Security
chown user:group fileChange file ownerProperties > Security
sudo commandRun as administrator“Run as administrator”
sudo -sOpen root shellAdmin CMD

Process Management

CommandWhat It DoesWindows Equivalent
ps auxList all processesTask Manager
kill PIDEnd a processEnd Task
killall nameKill all processes by nameno equivalent
command &Run in backgroundno equivalent
jobsList background jobsno equivalent
Ctrl+CStop running commandsame
Ctrl+ZSuspend commandno equivalent

Networking

CommandWhat It DoesWindows Equivalent
ip addrShow IP addressesipconfig
ping hostPingsame
curl URLDownload/fetch URLno equivalent
wget URLDownload fileno equivalent
sudo ss -tulnpShow listening ports with process namesnetstat -an

Text Editing

CommandWhat It DoesWindows Equivalent
nano fileSimple text editor (beginner-friendly)notepad
vim fileAdvanced text editor (steep learning curve)no equivalent

nano basics: Arrow keys to move, Ctrl+O to save, Ctrl+X to exit.

Useful Shortcuts

ShortcutWhat It Does
TabAuto-complete file/directory names
Up/Down arrowsScroll through command history
Ctrl+RSearch command history
Ctrl+LClear screen (same as clear)
!!Repeat last command (useful: sudo !!)
Ctrl+AMove cursor to start of line
Ctrl+EMove cursor to end of line

Pipes and Redirection

SyntaxWhat It Does
command | grep "text"Pipe output to search
command > fileRedirect output to file (overwrite)
command >> fileAppend output to file
command 2>&1Redirect errors to same output
command1 && command2Run command2 only if command1 succeeds
command1 || command2Run command2 only if command1 fails

Want Structured Practice?

This cheatsheet is a reference card. If you want to build real muscle memory — working through each command in a safe practice folder, with goals, explanations, and quizzes — the companion course covers all of the above in a structured 30-day path:

Linux Terminal Confidence Guide — A 30-day interactive Ubuntu terminal course. All practice runs inside ~/linux-practice (a disposable sandbox), risky commands are clearly labeled, and progress is saved in your browser. Covers navigation through scripting, package management, and cron — in order, without the random-command overwhelm.

Discussion