Welcome
Namaste and Welcome to the Command Prompt (CMD) tutorial! Let's learn essential Windows CMD commands the easy way with clear steps and real examples.
Namaste and Welcome to the Command Prompt (CMD) tutorial! Let's learn essential Windows CMD commands the easy way with clear steps and real examples.
These commands help you move around the file system in Command Prompt, just like clicking through folders in Windows Explorer — but faster!
Go to Root DirectoryC:\), run:
cd\
Change to a Specific Directorycd [path]
Example:
cd C:\Users\YourName\Documents
Go Back One Directorycd ..
Clear the Screencls
List Files and Foldersdir
These commands let you create, delete, copy, and move files and folders directly from the command line — no mouse needed!
Create a New Foldermkdir [folder]
Example:
mkdir my-project
Delete an Empty Folderrmdir [folder]
Delete a Filedel [file]
Example:
del notes.txt
Copy a File to a New Locationcopy [src] [dest]
Example:
copy notes.txt C:\Backup\notes.txt
Move a File to a New Locationmove [src] [dest]
Example:
move notes.txt C:\Archive\notes.txt
These commands help you view and test your network connection — useful for diagnosing internet or connectivity issues without opening a browser.
Display Network IP Informationipconfig
Test Network Connection to a Hostping [host]
Example — ping Google's servers:
ping google.com
These commands let you monitor and control running processes on your Windows system — think of them as a command-line version of the Task Manager.
Show Running Tasks / Processestasklist
Force Kill a Task by Nametaskkill /F /IM [name]
Example — force close Chrome:
taskkill /F /IM chrome.exe
Close the Command Promptexit
cmd, and press
Enter. Or search for "Command Prompt" in the Start menu.
| Command | Description |
|---|---|
cd\ |
Go to root directory |
cd [path] |
Change to specific directory |
cd .. |
Go back one directory |
cls |
Clear the screen |
dir |
List files and folders |
mkdir [folder] |
Create a new folder |
rmdir [folder] |
Delete an empty folder |
del [file] |
Delete a file |
copy [src] [dest] |
Copy a file to a new location |
move [src] [dest] |
Move a file to a new location |
ipconfig |
Display network IP information |
ping [host] |
Test network connection to a host |
tasklist |
Show running tasks/processes |
taskkill /F /IM [name] |
Force kill a task by name |
exit |
Close the Command Prompt |
We'll cover more advanced CMD commands in the next section 🚀