Shell Command Line shortcut in Linux

Source: Internet
Author: User

CTRL
Key bound
_____________
CTRL +
-Jump to the start of the line
CTRL + B
-Move back a char
CTRL + c
-Terminate the command
CTRL + d
-Delete from under the cursor
CTRL + E
-Jump to the end of the line
CTRL + F
-Move forward a char
CTRL + k
-Delete to EOL
CTRL + L
-Clear the screen
CTRL + R
-Search the history backwards
CTRL + R
-Search the history backwards with multi occurrence
CTRL + u
-Delete backward from cursor
CTRL + xx
-Move Between EoL and current cursor position
CTRL + x @
-Show possible hostname

Completions
CTRL + z
-Suspend/stop the command
____________ Alt
Key bound
___________
Alt + <
-Move to the first line in
History
Alt +>
-Move to the last line in the history
Alt +?
-Show current Completion list
Alt + *
-Insert all possible completions
Alt +/
-Attempt to complete filename
Alt +.
-Yank last argument to previous command
Alt + B
-Move backward
Alt + c
-Capitalize the word

Alt + d
-Delete word
Alt + F
-Move forward
Alt + L
-Make word lowercase
Alt + n
-Search the history forwards non-incremental
Alt + P
-Search the history backwards non-incremental
Alt + R
-Recall command
Alt + T
-Move words around
Alt + u
-Make word uppercase
Alt + back-space
-Delete backward from cursor

---------------- More special keybindings
-------------------

Here "2 t
"Means press tab
Twice

$2 t

-All available commands (common)
$ (String) 2 t

-All available commands starting with (string)
$/2 t

-Entire directory
Structure including hidden
One
$2 t

-Only sub dirs inside including hidden one
$ * 2 t

-Only sub dirs inside without hidden one
$ ~ 2 t

-All present users on system from "/etc/passwd
"
$2 t

-All sys
Variables
$ @ 2 t

-Entries from "/etc/hosts
"
$ = 2 t

-Output like ls
Or dir

 

Original: http://linuxhelp.blogspot.com/2005/08/bash-shell-shortcuts.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.