# 💻 IT Cheat Sheet – One-Page Reference
| **Area** | **Key Commands / Concepts** | **Typical Use** |
|----------|-----------------------------|-----------------|
| **Windows (Admin)** | • `net user` – list/add users <br>• `gpupdate /force` – refresh Group
Policy <br>• `sfc /scannow` – scan system files <br>• `chkdsk /f /r` – disk check & repair |
User/Policy management, troubleshooting |
| **Linux (Admin)** | • `sudo apt update && sudo apt upgrade` – update packages <br>•
`systemctl status/stop/start <service>` – service control <br>• `journalctl -xe` – view logs <br>•
`chmod/chown` – permissions | Server maintenance |
| **PowerShell** | • `Get-Process`, `Stop-Process` <br>• `Set-Service -Name wuauserv
-StartupType Automatic` <br>• `Invoke-WebRequest` | Automation & scripting |
| **Networking Basics** | • `ipconfig /all` (Win) / `ifconfig/ip a` (Linux) – view IP config <br>•
`ping <host>` – connectivity test <br>• `tracert/traceroute` – route path <br>• `netstat -an` – active
connections | Troubleshoot network |
| **DNS** | • `nslookup <domain>` <br>• `dig <domain>` (Linux) | Resolve hostnames |
| **Firewall** | • Windows: `netsh advfirewall set allprofiles state off/on` <br>• Linux: `ufw
enable/disable` or `iptables -A INPUT ...` | Manage inbound/outbound rules |
| **Remote Access** | • RDP: `mstsc /v:<host>` (Win) <br>• SSH: `ssh user@host` (Linux/macOS)
| Remote management |
| **Active Directory** | • `dsquery * -filter "(samAccountName=<user>)"` <br>• `netdom` for
trust/domain ops | User/group/query AD |
| **Domain Name Management** | • `whois <domain>` – ownership info <br>• `dig +short NS
<domain>` – nameservers | Domain troubleshooting |
| **Disk / Storage** | • Windows: `chkdsk C:` <br>• Linux: `df -h`, `du -sh *` | Space usage, health
|
| **Backup & Restore** | • Windows: `wbadmin start backup -backupTarget:<drive>` <br>• Linux:
`rsync -avz /src/ /dest/` | Data protection |
| **Virtualization** | • VMware: `vim-cmd vmsvc/getallvms` <br>• Hyper-V: `Get-VM`, `Start-
VM` | VM management |
| **Software Deployment** | • Chocolatey (Win): `choco install <pkg>` <br>• apt/yum/dnf (Linux)
| Package install |
| **Security Tools** | • Password audit: `mimikatz` (Win) <br>• Network sniffing:
`wireshark/tshark` | Forensics & monitoring |
| **Scripting Languages** | • Bash (`#!/bin/bash`) – quick scripts <br>• PowerShell (`.ps1`) –
automation <br>• Python (`import os, sys`) – cross-platform | Automate repetitive tasks |
---
## Quick Command Cheat Sheet