# 🖥️ Windows Commands Cheatsheet
#CS #Win 

A comprehensive guide to essential Windows commands for system management, troubleshooting, and more! 🌟

---

## 📂 File and Directory Management

| **Command**                | **Description**                                     |
|----------------------------|---------------------------------------------------|
| `dir`                      | List files and directories in the current folder. |
| `cd`                       | Change the current working directory.             |
| `md` or `mkdir`            | Create a new directory.                           |
| `rd` or `rmdir`            | Remove a directory.                               |
| `del`                      | Delete files.                                     |
| `copy`                     | Copy files to another location.                   |
| `move`                     | Move or rename files and directories.             |
| `ren`                      | Rename a file or directory.                       |
| `attrib`                   | Display or change file attributes.               |

---

## ⚙️ System Information and Configuration

| **Command**                | **Description**                                      |
|----------------------------|----------------------------------------------------|
| `systeminfo`               | Display detailed system information.               |
| `ipconfig`                 | Show network configuration details.                |
| `tasklist`                 | List all running processes.                        |
| `taskkill`                 | Terminate a running process by name or PID.        |
| `hostname`                 | Display the computer's hostname.                   |
| `set`                      | Display or set environment variables.              |
| `echo`                     | Display a message or value of an environment variable. |
| `date`                     | Display or set the system date.                    |
| `time`                     | Display or set the system time.                    |

---

## 🔒 User Management and Permissions

| **Command**                | **Description**                                      |
|----------------------------|----------------------------------------------------|
| `net user`                 | Manage user accounts.                              |
| `net localgroup`           | Manage local user groups.                          |
| `whoami`                   | Display the current user.                          |
| `cacls`                    | Display or modify access control lists (ACLs) of files. |
| `icacls`                   | Modify file and folder permissions.                |
| `runas`                    | Execute a program as another user.                 |

---

## 🛠️ Troubleshooting and Diagnostics

| **Command**                | **Description**                                      |
|----------------------------|----------------------------------------------------|
| `ping`                     | Test network connectivity to a host.               |
| `tracert`                  | Trace the route packets take to a network host.     |
| `nslookup`                 | Query DNS servers for information.                 |
| `chkdsk`                   | Check and repair disk errors.                      |
| `sfc /scannow`             | Scan and repair system files.                      |
| `diskpart`                 | Open the disk partition management tool.           |
| `fc`                       | Compare two files.                                 |

---

## 🔄 File and System Utilities

| **Command**                | **Description**                                      |
|----------------------------|----------------------------------------------------|
| `xcopy`                    | Copy files and directories with advanced options.  |
| `robocopy`                 | Copy files and directories with advanced options (robust). |
| `wmic`                     | Execute Windows Management Instrumentation (WMI) commands. |
| `powershell`               | Open the PowerShell command-line interface.        |
| `tree`                     | Display a graphical view of directory structure.   |
| `type`                     | Display the contents of a text file.               |
| `cls`                      | Clear the command prompt screen.                   |

---

## 🖥️ Advanced Networking Commands

| **Command**                | **Description**                                      |
|----------------------------|----------------------------------------------------|
| `netstat`                  | Display active network connections.                |
| `arp`                      | View or modify the ARP table.                      |
| `route`                    | Display or modify routing tables.                  |
| `netsh`                    | Configure network interfaces and settings.         |
| `ftp`                      | Transfer files to/from an FTP server.              |
| `telnet`                   | Connect to remote hosts using Telnet.              |
| `mstsc`                    | Open the Remote Desktop Connection tool.           |

---

## 💡 Pro Tips

- **Tab Completion**: Use the `Tab` key to auto-complete file and folder names.
- **Command History**: Use the `Up` and `Down` arrow keys to navigate through previous commands.
- **Help for Commands**: Add `/?` after any command (e.g., `ipconfig /?`) to view usage details.

Master these commands to boost your productivity and troubleshooting efficiency! 🚀