-
Notifications
You must be signed in to change notification settings - Fork 4
Command Line Cheatsheet
jfraboni edited this page Dec 16, 2014
·
5 revisions
Table of Contents
- Cursor Movement
- Fixing Mistakes
- Killing, Pausing & Resuming
- Navigating the Filesystem
- Command History
##Cursor Movement
Command | Action | |
---|---|---|
left-arrow |
: | Goes left, one character at a time |
right-arrow |
: | Goes right, one character at a time |
control-a |
: | Goes to the beginning of the line |
control-e |
: | Goes to the end of the line |
control-xx |
: | Toggle between start of line and current cursor position |
###Fixing Mistakes
Command | Action | |
---|---|---|
delete |
: | Erase one character at a time |
control-w |
: | Erase one word at at time |
control-u |
: | Erase the whole line from the cursor to the prompt |
control-d |
: | Erase the next character forward |
control-h |
: | Erase the previous character forward, same as delete
|
control-k |
: | Erase to the end of the line |
control-y |
: | Paste the last deleted character, word or line |
###Killing Pausing and Resuming
Command | Action | |
---|---|---|
control-c |
: | Kills any running process |
control-z |
: | Suspends any program |
fg |
: | Foreground, will resume a suspending program |
###History
Command | Action | |
---|---|---|
up-arrow |
: | Shows the previous command excuted |
down-arrow |
: | Shows the next command excuted, if any |
control-p |
: | Shows the previous command excuted |
control-n |
: | Shows the next command excuted, if any |