Tuesday 23 December 2025

All basic CMD commands with examples

CMD screen with basic commands for beginners
The CMD screen with basic commands for folders, files, network and systems. Ideal for beginners who want to learn the Windows command line.

📟 All Basic CMD Commands with Examples (Simple Guide)

CMD (Command Prompt), or “Command Line”, is a built-in Windows tool that allows you to give simple instructions to your computer by typing text, instead of using the mouse. Its appearance may be reminiscent of the old days with the black screen and white letters, but it remains extremely useful, fast and reliable. In this detailed guide you will learn the most basic CMD commands, with examples and simple explanations, so that even a novice user can use them.

🚀 How do I Open CMD?

Before we start with the commands, we first need to open CMD. The process is very simple and you can do it in more than one way, depending on what is convenient for you.
  • Method 1: Press the Windows button on your keyboard and type cmdOnce it appears, click to open it.
  • Method 2: Press the Windows + R buttons simultaneously, type cmd in the window that opens and press Enter.
  • Method 3: Open the Start menu, go to the "Windows System" folder and select "Command Prompt".

📁 Commands for Folders and Files

The following commands allow you to view, move, and manage folders and files without opening windows and icons.
➤ DIR - View the contents of a folder

dir

What is he doing: It displays all the files and folders that exist in the location you are in. It's like opening a folder from Windows Explorer.
➤ CD - Move to folder

CD Documents

What is he doing: It takes you to the folder you specify. In the example, you enter the "Documents" folder.

Cd ..

What is he doing: It takes you back a folder. Very useful when you want to go back quickly.
➤ MKDIR - Create a new folder

mkdir NewFolder

What is he doing: Creates a new folder with the name you give it.
➤ RMDIR - Delete folder

rmdir NewFolder

What is he doing: Deletes a folder, as long as it is empty.
💡 Useful Tip: To delete a folder with content, you can use rmdir /s Folder Name, but with caution.
➤ COPY - Copy file

copy file.txt D:\Backup\

What is he doing: Copies a file from one location to another.
➤ DEL - Delete file

del file.txt

What is he doing: Permanently deletes a file, without moving it to the Recycle Bin.
⚠️ Attention: CMD deletions are permanent. Always double check before proceeding.

🌐 Network Commands

With these commands you can check if you have an internet connection and view basic information about your network.
➤ PING - Connection check

ping www.google.com

What is he doing: It checks whether you can communicate with a website and how quickly.
➤ IPCONFIG - Network Information

ipconfig

What is he doing: Displays basic information about your computer connection.
➤ TRACERT - Connection trace

tracert www.google.com

What is he doing: It shows the path that data takes until it reaches a website.

💻 System Commands

System commands provide you with information about your computer and allow you to control basic functions.
➤ SYSTEMINFO - Complete system information

systeminfo

➤ TASKLIST - Active programs

tasklist

➤ TASKKILL - Terminate a program

taskkill /IM notepad.exe

🛠️ Maintenance Orders

These commands are useful for checking and improving the performance of your computer.
➤ CHKDSK - Check Disk

chkdsk C:

➤ SFC - Windows File Checker

sfc / scannow

➤ DISKPART - Disk Management

diskpart


Evangelos
✍️ Evangelos
Its creator LoveForTechnology.net — an independent and trusted source for tech guides, tools, and practical solutions. Each article is based on personal testing, evidence-based research, and care for the average user. Here, technology is presented simply and clearly.



RELATED TOPICS


⭐ Important Posts

 macOS: The pros and cons mac

macOS: The pros and cons before you choose it

 Silent laptops 2026 = choices

Silent laptops 2026: The model that works without you hearing it?

💬 Comments

Share your thoughts

Loading comments...