If you are that guy who spends most of your time working on the Terminal app on your Mac device, or someone who aspires to be one (Dev or DevOps) then it is really very important to know the Terminal shortcuts so that you can boost your productivity.

Keyboad Shortcut | Description |
---|---|
Cmd + N | To open a new Terminal window. |
Cmd + T | To open a new tab within the current Terminal window. |
Cmd + W | To close the current Terminal tab or window. |
Cmd + Shift + N | To create a new Terminal window with the same working directory as the current window. |
Cmd + Shift + T | To reopen the last closed tab. |
Cmd + [Number] | To switch to a specific tab by using the number on the keyboard (e.g., Cmd + 1 to switch to the first tab and so on). |
Cmd + Option + Right Arrow | To Switch to the next tab. |
Cmd + Option + Left Arrow | To Switch to the previous tab. |
Cmd + Shift + [ | To move to the next tab in left-to-right order. |
Cmd + Shift + ] | To move to the previous tab in right-to-left order. |
Ctrl + A | To Move the cursor to the beginning of the line. |
Ctrl + E | To move the cursor to the end of the line. |
Option + Left Arrow | To move the cursor to the previous word. |
Option + Right Arrow | To move the cursor to the next word. |
Ctrl + U | To delete from the cursor position to the beginning of the line. |
Ctrl + K | To delete from the cursor position to the end of the line. |
Ctrl + L | Clear the screen. |
Up Arrow | To scroll through previous commands in the command history. |
Down Arrow | To scroll through subsequent commands in the command history. |
Ctrl + R | To search command history. |
!! | To repeat the last command. |
-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to MacOS,
- Clear Screen shortcut macOS Terminal
- What is macOS Ventura?
- [fix] How to Show file extensions on all files on Mac
- How to Find Where Mac Terminal App is Located?
- AutoSave button not working on Office on Mac (Word, Excel or Powerpoint)
- macOS say command text to speech using various voices and languages
- How to change Ping TTL value on macOS
- Open .bash_profile File in TextEdit using Terminal
- How to know the Safari Version on Mac
- How to Copy full Absolute Path of a File on Mac
- 13.0 MacOS Ventura release date
- Enable spell check in Sublime Text (macOS)
- How to Display Analog Clock on Mac Menu Bar
- How to turn off Location Services macOS Ventura 13
- How to Open VS Code on Mac
- Add Bookmark macOS Safari
- How to Fix cd: too many arguments Error in Terminal: A Step-by-Step Guide
- How to install wget on macOS
- Select Line Number TextEdit on Mac
- Strikethrough Text in Excel for Mac
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to hide or display Wifi icon in macOS Bug Sur Menu Bar
- How to install Yarn on Mac (macOS)
- How to fix command not found brew (bash, zsh) on macOS Terminal
- How to Schedule Mails in macOS Ventura
More Posts:
- Java Jackson ObjectMapper Class with Examples - Java
- Java: Generate random numbers within a range - Java
- Cannot access files within Microsoft Teams - We are setting up your file directory - Teams
- How to save a file as csv in Windows Notepad? - Microsoft
- Jupyter Notebook: 404 : Not Found - You are requesting a page that does not exist! - Python
- Python: How to POST Json Data with HTTP Request - Python
- How to Open .bash_profile file in Mac Terminal - MacOS
- Mac OS X Taking Screen Capture using Terminal - Mac-OS-X