by Gand — last modified 2005-11-22 12:29 AM
Key | Result |
Esc-F | Move insertion point to the beginning of the next word. |
Esc-B | Move insertion point to the beginning of the current word. |
Esc-del | Erase previous word. |
Esc-D | Erase word, or section of a word, following the insertion point. |
Esc-C | Capitalize letter following the insertion point. |
Esc-U | Change next word or word section to all UPPERCASE letters. |
Esc-L | Change next word or word section to all lowercase letters. |
Control-A | Move insertion point to the beginning of the line. |
Control-E | Move insertion point to the end of the line. |
Control-U | Erase entire command line you're working on (to the insertion point's left). |
Control-T | Transpose previous two characters. |
Control-K | Erase from the cursor to the start of the command line. |
Control-R | Search the list of commands incrementally based on what you type. |
Tab | Complete the path or filename. |
UP arrow | List previous commands up. |
DOWN arrow | List previous commands down. |
To see a list of what's available, you can use the command bind -p | less
\M means to press esc, \C means the control key.
Terminal in Color
Get the Terminal to show distinction between files, folders, links, etc. using color. Type ls -G to get listings in color.
To make this permanent, you can add an alias to your .profile file in your home directory.
In ~/.profile add: alias ls="ls -G"
Using mouse to position cursor
You can Option (Alt) + click to position cursor in terminal window.
Check Option click to position cursor in Terminal->Terminal Inspector->Emulation preferneces window.