Command Line Shortcuts Flashcards
Backspace
delete previous character
CTRL-d
delete current character (like a windows delete key)
CTRL-k
delete rest of line
CTRL-a
go to start of line (home)
CTRL-e
go to end of line (end)
CTRL-b
go backwards without deleting
CTRL-f
go forward without deleting
TAB
complete filename or command up to the point of uniqueness
CTRL-u
cancel from cursor to beginning of line
CTRL-p
show the last command typed, then the one before that, etc.
CURSOR-up
show the last command typed, then the one before that, etc.
CTRL-n
go forwards in the history of commands
CURSOR-down
go forwards in the history of commands
CTRL-c
cancel the processes after it has started
CTRL-z
suspend a running process (e.g. in order to do something else in between; you can then put the process in the background with bg)
CTRL-l
redraws the screen
delete previous character
Backspace
delete current character (like a windows delete key)
CTRL-d
delete rest of line
CTRL-k
go to start of line (home)
CTRL-a
go to end of line (end)
CTRL-e
go backwards without deleting
CTRL-b
go forward without deleting
CTRL-f
complete filename or command up to the point of uniqueness
TAB
cancel from cursor to beginning of line
CTRL-u
show the last command typed, then the one before that, etc.
CTRL-p
show the last command typed, then the one before that, etc.
CURSOR-up
go forwards in the history of commands
CTRL-n
go forwards in the history of commands
CURSOR-down
cancel the processes after it has started
CTRL-c
suspend a running process (e.g. in order to do something else in between; you can then put the process in the background with bg)
CTRL-z
redraws the screen
CTRL-l
Open mode CTRL-d
signals end of file
CTRL-s
suspends the screen display
CTRL-q
restarts suspended display
signals end of file
Open mode CTRL-d
suspends the screen display
CTRL-s
restarts suspended display
CTRL-q
deletes word before cursor
CTRL-w
advance word left
ALT-left
advance word right
ALT-right
run that last command in history
!-command
CTRL-w
deletes word before cursor
ALT-left
advance word left
ALT-right
advance word right
!-command
run that last command in history