Some Essentials Bash Shortcuts
(logo credit : Marta Marino)

Some Essentials Bash Shortcuts

Navigation Shortcuts:

Ctrl + a :
Move to the beginning of the line.

Ctrl + e : 
Move to the end of the line.

Ctrl + b : 
Move back one word.

Alt+b, Esc+b :
Move backward one word

Alt+f, Esc+f :
Move forward one word

Ctrl + f : 
Move forward one word.

Ctrl + xx : 
Move between the beginning and current cursor position.
        
Ctrl + a

  • Move to the beginning of the line


Ctrl + e

  • Move to the end of the line.


Ctrl + b

  • Move back one word.


Alt+b, Esc+b

  • Move backward one word


Alt+f, Esc+f

  • Move forward one word


Ctrl + f

  • Move forward one word.


Ctrl + XX

  • Move between the beginning and current cursor position.



? Editing Shortcuts:

Ctrl + U : 
Delete from the cursor to the beginning of the line.

Ctrl + K : 
Delete from the cursor to the end of the line.

Ctrl + W : 
Delete the word before the cursor.

Ctrl + Y : 
Paste the last deleted text.

Ctrl + _ : 
Undo the last change.

        
CTRL + u

  • Delete from the cursor to the beginning of the line.


CTRL + k

  • Delete from the cursor to the end of the line.


CTRL + w

  • Delete the word before the cursor.


CTRL + y

  • Paste the last deleted text.


CTRL + _

  • Undo the last change.


? History Shortcuts

CTRL + R : 
Search history (start typing to search, press CTRL + R again to find the next match).

CTRL + G :
To leave the history searching mode and clear the line.

Up Arrow or Ctrl + P : 
Navigate up through command history.

Down Arrow or Ctrl + N : 
Navigate down through command history.

*Alt + .* or ***Esc + .*** : 
Paste the last argument of the previous command.
        
CTRL + r

  • Search history (start typing to search, press Ctrl + R again to find the next match).


CTRL + g

  • To leave the history searching mode and clear the line


Up Arrow or Ctrl + P

  • Navigate up through command history.


Down Arrow or Ctrl + N

  • Navigate down through command history.


Alt + . or Esc + .

  • Paste the last argument of the previous command.


?Miscellaneous Shortcuts


Ctrl + C : 
Terminate the current command.

Ctrl + D : 
Exit the shell (or send EOF if the line is empty).

Ctrl + Z : 
Suspend the current command (use g to resume).

Ctrl + L : 
Clear the screen.

CTRL + shift + c
To copy text in terminal

CTRL + alt + t
To open a terminal

Alt+r, Esc+r
Undo all changes to the line        
CTRL + c

  • Terminate the current command.


CTRL + d

  • Exit the shell (or send EOF if the line is empty).


CTRL + z

  • Suspend the current command (use q to resume).


CTRL + l

  • Clear the screen.


CTRL + shift + c

  • To copy text in terminal


CTRL + alt + t

  • To open a terminal


Alt+r, Esc+r

  • Undo all changes to the line


?? If you are reading this article, I'm planning to open a Linux community in telegram DM me for the channel link.


?If you find my article useful and interesting, stay tuned for further updates and future articles?

???? Vijay Pandey


Dhiraj Pal

Linux Ubuntu | React Js | Python |

9 个月

Very helpful!

要查看或添加评论,请登录

Vijay Pandey的更多文章

  • Node.js 101: Everything Beginners Need to Know

    Node.js 101: Everything Beginners Need to Know

    ?? Greetings, techies! You are in for a treat if you have ever wondered how some of the most dynamic and scalable…

    8 条评论
  • Statistics Part-1

    Statistics Part-1

    Index : ?Statistics -> Definition -> What Exactly is Data? ?Types of Statistics -> 1.What Is Descriptive Stats? -> 2.

  • What Is Data Analyst ?

    What Is Data Analyst ?

    ?What is Data Analyst? ???? Take an example: Amazon Want to decide when is the Next Big Billion Sale? basically which…

    4 条评论
  • History Commands

    History Commands

    Displays the command history list. Defines the maximum number of lines stored in the history file.

  • ??Package Manager - Install Software

    ??Package Manager - Install Software

    ???? Introduction to Package Manager ???? How to install software on Linux? Using a package manager - You will Install…

  • Intro To Command Line

    Intro To Command Line

    Index : CLI Vs GUI Directory Operation File Operations Navigating in the FileCLI Vs GUI Directory Operation File…

  • Linux File System

    Linux File System

    Index What is Linux File System? Why Linux File system is important? Window vs Linux File System? Some Important…

    3 条评论
  • Solution to Assignment-1

    Solution to Assignment-1

    Index What is the Free Software Movement? Who was the actual Inspiration Behind Linux? Who was Involved and Where was…

    1 条评论
  • Linux Basics

    Linux Basics

    Welcome aboard, fellow explorers! I'm thrilled to invite you on an exicting journey into the world of Linux, where the…

    5 条评论

社区洞察

其他会员也浏览了