Cheat Sheet To All Bash Shortcuts You Should Know

bash shortcuts header image

The Linux Bash is commonly used by developers, though it may seem fairly difficult to navigate at first. The use of arrow keys to navigate between commands is obviously a hassle and often becomes a major challenge.

However, in general, Bash is quite easy to use. If you’re going to use it on a VPS, it’s important that you know about the different shortcuts that Bash has to offer. Here’s a full list of different Bash shortcuts that you can use, divided in separate categories. 


The following list of shortcuts will allow you to easily edit commands. 

CTRL + x, CTRL + eEdit the current command in $EDITOR
CTRL + _Undo
ALT + DELDelete word before the cursor
ALT + dDelete word after the cursor
CTRL+ yPaste the last item
CTRL + dDelete character below the cursor
CTRL + hDelete character before the cursor
CTRL + wCut the word just before the cursor to clipboard
CTRL + dCut the word after the cursor to clipboard
CTRL + uCut the line before the cursor to clipboard
CTRL + kCut the line after the cursor to clipboard


These are the shortcuts that you can use to navigate Bash.

CTRL + eGo to the end of the line
CTRL + aGo to the start of the line
CTRL + xToggle between the current position of the cursor or to the start of the line
CTRL + fMove cursor forward by one character
CTRL + bMove cursor back by one character
ALT + fMove cursor forward by one word
ALT + bMove cursor back by one word


You can use these shortcuts to check your history or bring up a history search.

CTRL + gExit history search
CTRL + rOpen history search
CTRL + pSee previous commands
CTRL + nSee the next commands in history


These are commands that you can use to control processes in Bash.

CTRL + lClear your entire screen
CTRL + zSuspend currently running processes and move them in the background
CTRL + cKill currently running processes
CTRL + dExit current shell
EnterExit a suspended SSH session

After Action Report – Use These Commands to Simplify Bash 

These are some of the many commands that you can use to simplify your use of Bash and move between commands more easily. 

Already using Bash on your VPS? Let us know if you have any other commands to add, and join the conversation by leaving a comment below! 💬

Categories: Server Management, Tips & Tricks

Simplifying Server Management

RunCloud is a cloud server management tool that allows you to maintain full control of your server and host multiple WordPress, WooCommerce, Laravel, and PHP applications with fast and easy configuration.

Start Your Free Trial

5 days free trial no credit card required cancel anytime

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.