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!
Author Info:
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
More Posts related to MacOS,
- How to show line numbers in Nano on Mac
- How to install Jupyter Notebook on macOS Sonoma
- How to Disable Remote Management using Mac Terminal
- Test internet speed using macOS Terminal command
- Docker Desktop needs privileged access macOS
- Google Search Hot Trends Screensaver for Mac OS X
- How to do calculations in Mac Terminal
- How to make TextEdit the default text Editor on Mac
- How to Show Full Website Address on Safari for Mac (Ventura/Sonoma)
- The Zsh Shell - Mac Tutorial
- Opening mac Terminal
- How to change the name of your Mac running on macOS Ventura 13
- How to find the Battery Cycle Count on macOS Ventura
- How to set an emoji as Zsh terminal prompt in macOS
- How to access Trash Folder using Mac Terminal Command
- macOS Ventura XCode Command Line Tools Installation
- Hide Bluetooth icon on Mac Menu Bar macOS Ventura 13
- How to run .sh file in Mac Terminal
- Terminal Command to get the list of available shells in macOS
- How to see Storage Information on macOS Ventura
- How to Go To /usr/local/bin on Mac Terminal?
- How to do screen recording on Mac
- How to Find File and Directory Size in Mac Terminal
- Open .bash_profile File in TextEdit using Terminal
- Remove Now Playing icon from macOS Big Sur Menu Bar
More Posts:
- [fix] docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory. - Docker
- Todays Apple Spring Loaded Event Live Updates - Apple
- How to install Spring CLI using Mac Terminal - HowTos
- Java 8: Predicate negate() default Function Example - Java
- How to Open a New Notebook in Google Colab - Google
- Share Image and Text on Instagram from Android App using Share Dialog - Android
- ls command sort by file size [Linix/UNIX/macOS/bash] - Linux
- Align left align text in Bootstrap - Bootstrap