Keyboard Shortcuts for Bash (Unix Shell):
In this article, we will explain the simple
Keyboard Shortcuts for Bash (Unix Shell). is a Bash Unix shell and a command language. It is used for command-line editing, job control, shell functions, and aliases.
Bash (Unix shell) Logo
Last updated on Oct 04, 2020.
Download Bash(Unix shell) Shortcuts for Offline Study Here: Working with the process Shortcuts:
Ctrl+ C It is used to
Kill the current foreground process running in the terminal.
Ctrl+ Z It is used to
suspend the current foreground process running in bash.
Ctrl+ D Helps to
close the bash shell. Controlling the screen Shortcuts:
Ctrl+ L It is used to
clear the screen.
Helps to stop all output to the screen . This shortcut can be useful when running commands with a very long result, but you don’t want to stop the command with Ctrl + C.
Ctrl+ Q This shortcut key is used to
resume output to the screen after stopping it with Ctrl + S. Moving the cursor Shortcuts:
or Ctrl+ A Home It
goes to the beginning of the line.
or Ctrl+ E End It helps to
go to the end of the line.
Ctrl+ B This key will
go left one character.
Alt+ F It is used to
go right one word.
Ctrl+ F Helps to
go right to one character.
Ctrl+ X+then X
It is used to move between the beginning of the line and the current position of the cursor . This shortcut allows you to change something and return to the original position. Deleting text Shortcuts
or Ctrl+ D
Del It is used to
delete the character under the cursor.
Alt+ D This key will
delete all characters after the cursor on the current line.
or Ctrl+ H
Backspace Helps to
delete the character before the cursor. Correcting text shortcuts:
Alt+ T This shortcut key is used to
swap the current word with the previous word.
Ctrl+ T It helps to
swap the last two characters before the cursor with each other.
This key will undo your last keypress. We can use it multiple chances.
Esc+ T It is used to
swap the last two words before the cursor. Cut and Paste Shortcuts:
Ctrl+ W Helps to
cut the word before the cursor and it to the clipboard.
Ctrl+ K This key is used to
cut the part of the line after the cursor and add it to the clipboard.
Ctrl+ U It will
cut the part of the line before the cursor and add it to the clipboard.
Ctrl+ Y Helps to
paste the last thing you cut from the clipboard. The y here stands for yank. Capitalizing characters shortcuts:
Alt+ A This shortcut key is used to
capitalize every character from the cursor to the end of the current word, converting the characters to upper case.
Alt+ A It will be
uncapitalized every character from the cursor to the end of the current word, converting the characters to lower case.
Alt+ A Helps to
capitalize on the character under the cursor. Your cursor will move to the end of the current word. Tab completion Shortcut:
Tab This shortcut key will
automatically complete the file, directory, or command you are typing. Command history shortcuts:
or Ctrl+ P ↑ It is used to
go to the previous command in the command history.
or Ctrl+ N ↓
This key will go to the next command in the command history.
Alt+ R Helps to
revert any changes to a command you have called from your history if you have edited it.
Ctrl+ R It is used to
recall the last command matching the characters you provide. Press this shortcut and start typing to search your bash history for a command.
Ctrl+ O It will
run a command you found with Ctrl + R.
Ctrl+ G Helps to
leave history searching mode without running a command.
From the article, you can learn the
keyboard shortcuts for Bash (Unix shell). If you have any suggestions, then leave your feedback in the comment section. Read Also: