Catalog / Windows Terminal Environments Cheatsheet
Windows Terminal Environments Cheatsheet
A comprehensive cheat sheet covering essential commands and concepts for both Windows CMD and PowerShell, providing quick references for navigation, file management, system information, and more.
Basic Navigation & File Management
Command Prompt (CMD) - Navigation
|
Change directory to the specified directory. |
|
Move up one directory level. |
|
Change to the root directory. |
|
List files and subdirectories in the current directory. |
|
Display the directory structure graphically. |
|
Saves the current directory for use later and changes to specified directory. |
|
Returns to the directory most recently saved by the |
PowerShell - Navigation
|
Change directory to the specified directory. |
|
Move up one directory level. |
|
List files and subdirectories in the current directory (alias: |
|
Saves the current location to a stack and changes to the specified location. |
|
Retrieves the last location from the location stack. |
|
Displays the current directory. |
File Management (CMD)
|
Create a new directory. |
|
Remove an empty directory. |
|
Delete a file. |
|
Copy a file. |
|
Rename a file. |
File Management & System Info
File Management (PowerShell)
|
Create a new directory. |
|
Remove a directory (can also remove files). |
|
Copy a file or directory. |
|
Rename a file or directory. |
|
Move a file or directory. |
|
Creates a new file. |
System Information (CMD)
|
Display detailed system configuration information. |
|
Display a list of currently running processes. |
|
Display IP configuration information. |
|
Displays the hostname of the machine. |
System Information (PowerShell)
|
Display comprehensive computer information. |
|
Display a list of currently running processes. |
|
Display IP configuration information. |
|
Displays information about the current PowerShell host. |
|
Check if the specified path exists. |
Process Management & Networking
Process Management (CMD)
|
Forcefully terminate a process by image name. |
|
Forcefully terminate a process by process ID. |
|
Start a program. |
Process Management (PowerShell)
|
Forcefully terminate a process by name. |
|
Forcefully terminate a process by process ID. |
|
Start a program. |
|
Get a list of the services available on the computer. |
|
Stop a service. |
|
Start a service. |
Networking (CMD)
|
Ping a hostname or IP address. |
|
Trace route to a hostname. |
|
Display active TCP connections, listening ports, etc. |
Advanced Commands & Scripting
Networking (PowerShell)
|
Ping a hostname or IP address. |
|
Test a specific TCP port. |
|
Get active TCP connections. |
|
Query DNS for hostname. |
CMD Scripting
|
PowerShell Scripting
|