Command | Description |
---|---|
control + a | Go to the start of the line |
control + e | Go to the end of the line |
control + b | Move cursor one character backward |
control + f | Move cursor one character forward |
alt + b | Move cursor one word backward |
alt + f | Move cursor one word forward |
alt + ← | Same as alt + b |
alt + → | Same as alt + f |
Command | Description |
---|---|
alt + delete | Cut the word before cursor |
alt + d | Cut the word after cursor |
control + w | Same as alt + delete |
control + u | Cut the Line before cursor |
control + k | Cut the Line after cursor |
control + y | Paste the last thing to be cut |
control + l | Clear the screen |
Command | Description |
---|---|
tab | Auto complete file or directory names |
control + c | Kill whatever you are running |
control + d | Exit the current shell |
control + t | Swap the last two characters before cursor |
alt + . | Use the last word of previous command |
alt + # | Comment current command |
- Enable Use Option as Meta key in Terminal > Preferences > Profiles > Keyboard in order to use some commands involved with alt.