Show Menu
Cheatography

Shell hotkeys Cheat Sheet by

ksh and bash hotkeys

bash/ksh hotkeys

bash
 
ksh
ctrl-l
clear screen
esc-\
auto comple­tion. only work if the file/c­ommand is in current directory
ctrl-r
does a search in the previously given commands so thatdoes a search in the previously given commands so that you dont have to repeat long command
esc-k
scroll up
ctrl-u
clears the typing before the hotkey.
esc-j
scroll down
ctrl-a
takes you to the begining of the command you are currently typing.
esc-/
search in the previously given commands (esc-/ keyin the command you want search & enter. press n or N to go to the next or previous command, even ctrl-r in bash can't go to the next or previous command or maybe i just don't know how.
ctrl-e
takes you to the end of the command you are currently typing in.
esc-=
filename check - this is cool!!!
esc-b
takes you back by one word while typing a command.
esc-l
forward one character
ctrl-c
kills the current command or process.
esc-h
backward one character
ctrl-d
kills the shell.
esc-x
delete one character
ctrl-h
deletes one letter at a time from the command you are typing in.
esc-r
replace one character
ctrl-z
puts the currently running process in backgr­ound, the process can be brought back to run state by using fg command.
esc-e
forward end of word
esc-p
like ctrl-r lets you search through the previously given commands.
esc-b
backward beginning of word
esc
gives the last command you typed.
esc-d
delete to end of line
tab
auto completion
esc-i
insert text (current space)
   
esc-a
insert text (adjacent space)
   
esc-^
move cursor to beginning of line
   
esc-$
move cursor to end of line
for ksh:
set -o vi first
esc key is not necessary if you are currently in comman­d-mode

content is taken from:
http:/­/as­hte­rix.bl­ogs­pot.it­/20­06/­03/­uni­x-t­ip-­ksh­-ho­tke­ys-­vs-­bas­h-h­otk­eys.html
           
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Linux Command Line Cheat Sheet
          bash Shortcuts Cheat Sheet
          Bash Script Colors Cheat Sheet

          More Cheat Sheets by maxbini