Terminal Cheatsheet
terminal
cheatsheet
A quick reference guide for common terminal commands in Zsh/Bash and PowerShell.
Zsh/Bash ( Mac or Linux)
File Operations
cat [file]
: Display the contents of a filecp [source] [destination]
: Copy a file or directorymv [source] [destination]
: Move or rename a file or directorygrep [pattern] [file]
: Search for a pattern in a filechmod [permissions] [file]
: Change file permissions
Process Management
ps
: List running processeskill [PID]
: Terminate a processtop
: Display system activity and process information
PowerShell ( Win)
File Operations
gc [file]
: Get the contents of a filecp [source] [destination]
: Copy a file or directorymv [source] [destination]
: Move or rename a file or directorysls [pattern] [file]
: Search for a pattern in a fileicacls [file] /grant [permissions]
: Change file permissions
Process Management
ps
: List running processeskill [PID]
: Terminate a processtasklist
: Display running tasks