Windows Command Prompt is a powerful tool that provides access to over 280 command-line tools. These commands can perform various tasks, such as managing files and directories, running programs, and modifying system settings. Here’s a list of 25 of the most commonly used Windows commands with examples for your reference.
How to open the Windows Command Prompt
To open the Command Prompt on Windows, follow these steps:
- Click the Start button on the bottom left corner of the screen.
cmdin the search bar and select “Command Prompt” from the search results.
- Alternatively, you can also press the Windows key + X and select “Command Prompt” from the Power User menu.
- Another option is to hold down the Windows key + R, type
cmdin the Run dialog box and press Enter.
- To open an elevated command prompt, right-click on the Command Prompt icon and choose “Run as Administrator”
- Once the Command Prompt window opens, you can start typing commands.
Note: The appearance of the Command Prompt may vary depending on the version of Windows you are using.
Top 25 Windows Commands
dir: Display a list of files and folders in a directory. Example:
cd: Change the current directory. Example:
mkdir: Create a new directory. Example:
rmdir: Delete an empty directory. Example:
echo: Display a message on the screen. Example:
echo Hello World!
copy: Copy files or directories. Example:
copy file1.txt file2.txt
move: Move files or directories. Example:
move file1.txt Documents
del: Delete files. Example:
type: Display the contents of a file. Example:
cls: Clear the Command Prompt screen. Example:
start: Open a file or run a program. Example:
ipconfig: Display network configuration information. Example:
ping: Test the connection to a network address. Example:
netstat: Display network status information. Example:
nslookup: Display the IP address of a website. Example:
tracert: Display the route taken by packets to a network address. Example:
systeminfo: Display system information. Example:
tasklist: Display a list of running processes. Example:
taskkill: End a running process. Example:
taskkill /pid 1234
driverquery: Display information about installed drivers. Example:
sfc: Scan and repair system files. Example:
chkdsk: Check and repair file system errors. Example:
diskpart: Manage disk partitions. Example:
regedit: Edit the Windows registry. Example:
shutdown: Shut down or restart the computer. Example:
Windows Command Prompt provides access to over 280 command-line tools that can perform various tasks, such as managing files and directories, running programs, and modifying system settings. This guide provides a list of 25 of the most commonly used Windows commands with examples, including displaying file and directory information, managing files, running programs, and system information.
There are currently no comments on this article.