Skip to content

Instantly share code, notes, and snippets.

@petergi
Created September 18, 2024 18:06
Show Gist options
  • Save petergi/7308811be2bca997d6ce577a18f17737 to your computer and use it in GitHub Desktop.
Save petergi/7308811be2bca997d6ce577a18f17737 to your computer and use it in GitHub Desktop.
Read the tin...

Essential Mac and Windows Shortcuts

Shortcut Windows 11 macOS
Basics
Copy Ctrl + C Command + C
Cut Ctrl + X Command + X
Paste Ctrl + V Command + V
Undo Ctrl + Z Command + Z
Find Ctrl + F Command + F
Search and replace Ctrl + H Command + H
Select all Ctrl + A Command + A
Bold Ctrl + B Command + B
Italic Ctrl + I Command + I
Underline Ctrl + U Command + U
Superscript Ctrl + Shift + = Command + Control + +
Subscript Ctrl + = Command + Control + –
Rename F2 Return
File menu Alt + F Command + F2 and F
Edit menu Alt + E Command + F2 and E
View menu Alt + V Command + F2 and V
Print Ctrl + P Command + P
Command Prompt/Terminal
Copy Ctrl + C Command + C
Paste Ctrl + V Command + V
Select current line Ctrl + A Triple-click the line
Move one line up/down Ctrl + Up / Ctrl + Down Option + Command + Page Up / Option + Command + Page Down
Search Ctrl + F Command + F
New tab Ctrl + Win + T Command + T
List files and folders dir ls
Full path of current folder/directory cd pwd
Change folder/directory cd cd
One directory up in directory tree cd.. cd ..
Move to root directory cd cd
Create new directory in current directory mkdir newFolder mkdir myFolder
Create new file echo some-text > fileName(.txt) cat > fileName(.txt)
Remove a directory rmdir myFolder rmdir myFolder
Rename a directory ren oldFolderName newFolderName mv oldFolderName newFolderName
Copy a directory robocopy myFolder cp -r myFolder
Move a directory move myFolder mv myFolder
Remove a file del myFile rm myFile
Rename a file ren oldFileName newFileName ren oldFileName newFileName
Copy a file copy myFile cp myFile
Move a file move myFile mv myFile
Clear the screen cls clear
Concatenate and print a file myFile cat myFile
Count lines in a file C:/../myFile PIPE** find "" /v /c wc -l myFile
Close window Type Exit then Enter Shift + Command + W
Browser
New tab Ctrl + T Command + T
Focus on browser address bar Alt + D Command + L
Go to browser home page Alt + Home Command + Home
Add .com to URL Ctrl + Enter Command + Return / Control + Return
Add to current page bookmark Ctrl + D Command + D
Close current window Ctrl + W Command + F11
Desktop
System search Windows, then type Command + Space, then type
Show or hide desktop Windows + D Command + Mission Control
Peek desktop Windows + , Command + F3
Resize or minimize app Windows + Down arrow Command + M
Minimize all apps Windows + M Command + Option + M
Switch between active windows Alt + Tab Command + Tab
Close active window Alt + F4 Command + W
Toggle full screen F11 Command + Control + F
Launch taskbar app with the position specified by the number Windows + Number Fn + Control + F3 then Left arrow and Return
Save screenshot of the screen Windows + Print Screen Command + Shift + 3
Copy screen screenshot to clipboard Print Screen Command + Control + Shift + 3
Copy active window screenshot Alt + Print Screen Command + Control + Shift + 3
Narrator in Windows / VoiceOver in Mac Windows + Ctrl + Enter Command + Fn + F5
Start menu in Windows / Dock in Mac Windows Command + Option + D
File Explorer in Windows / Open Search in Finder Windows + E Command + Option + Space
Character Map Windows + R, type charmap, then Enter Command + Control + Space
Settings / Preferences Windows + I Command + ,
Power
Lock desktop Windows + L Command + Control + Q
Sign out Ctrl + Alt + Del, click Sign out Command + Option + Shift + Q
Sleep or standby Windows + X then U then S Command + Option + Eject
Shutdown Windows + X then U then U Command + Control + Option + Eject
Restart Windows + X then U then R Command + Control + Power
Force shutdown Hold power button Hold power button for longer than 1.5 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment