List of Day to Day CMD commands

Introduction

As a developer working on Windows, the Command Prompt (CMD) is a powerful tool for daily tasks. Below are essential commands with examples you can copy and use directly.

Navigation Commands

cd foldername        :: change directory
cd ..                :: go up one directory
dir                  :: list files and folders
cls                  :: clear the screen

File and Folder Management

mkdir myproject      :: create a new folder
rmdir myproject      :: remove a folder
del file.txt         :: delete a file
copy file.txt d:\backup\ :: copy file to another location
move file.txt d:\work\   :: move file to another location

System Information

echo %username%      :: show current user
echo %date% %time%   :: show date and time
systeminfo           :: display system details
ipconfig             :: show network configuration

Networking Commands

ping google.com      :: test connectivity
tracert google.com   :: trace route to host
netstat -an          :: show active connections
nslookup example.com :: DNS lookup

Process and Task Management

tasklist             :: list running processes
taskkill /IM notepad.exe /F :: force kill process
shutdown /s /t 0     :: shutdown immediately
shutdown /r /t 0     :: restart immediately

Developer Utilities

code .               :: open current folder in VS Code (if installed)
git --version        :: check Git installation
node -v              :: check Node.js version
python --version     :: check Python version

File Editing and Output

echo Hello World > hello.txt   :: create file with text
type hello.txt                 :: display file contents
notepad hello.txt              :: open file in Notepad

Conclusion

These commands cover navigation, file management, system info, networking, and developer utilities. By mastering them, developers can streamline daily tasks and work more efficiently in the Windows environment.