Navigation and File Management
| Command | Description |
| cd | Change directory |
| cd .. | Move to parent directory |
| cd ~ | Move to root directory |
| dir | List files and directories |
| mkdir | Create a new directory |
| rmdir | Remove a directory |
| copy | Copy files |
| move | Move files |
| del | Delete files |
| rename | Rename files |
System and Network
| Command | Description |
| ipconfig | Display network configuration |
| ping | Test network connectivity |
| tracert | Display network route |
| netstat | Display network statistics |
| tasklist | List running processes |
| taskkill | Kill a process |
| systeminfo | Display system information |
File and Directory Operations
| Command | Description |
| type | Display file contents |
| echo | Output text to screen |
| cls | Clear screen |
| exit | Close CMD window |
| attrib | Display or modify file attributes |
User and Security
| Command | Description |
| net user | List user accounts |
| net localgroup | List local groups |
| runas | Run a command as another user |
| icacls | Display or modify file permissions |
Batch Files and Scripting
| Command | Description |
| @echo off | Turn off command echoing |
| pause | Pause batch file execution |
| goto | Jump to a label in a batch file |
| set | Set environment variables |
Creating a Bootable Pendrive using CMD
| Command | Description |
| diskpart | Open DiskPart utility |
| list disk | List available disks |
| select disk X | Select the pendrive disk (replace X with the disk number) |
| clean | Clean the disk |
| create partition primary | Create a primary partition |
| select partition 1 | Select the newly created partition |
| active | Mark the partition as active |
| format fs=fat32 quick | Format the partition as FAT32 |
| assign | Assign a drive letter to the pendrive |
| exit | Exit DiskPart utility |
| xcopy /s /e /f <source> <destination> | Copy bootable files to the pendrive |
Note: Replace X with the disk number of the pendrive, and <source>, <destination> with actual paths.
Example:
If your pendrive is disk 2 and the bootable files are in C:\bootfiles and drive letter is E:, use:
diskpart → list disk → select disk 2 → clean → create partition primary → select partition 1 → active → format fs=fat32 quick → assign → exit
Then:
xcopy /s /e /f C:\bootfiles\* E:\