Created
December 28, 2015 08:22
-
-
Save lovubuntu/1e1bcd8eb60677cec5c9 to your computer and use it in GitHub Desktop.
shell magic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There are lots of tcsh commands that help you navigate around when playing in the terminal. | |
Ctrl-a : back to begining of line | |
Ctrl-e: end of line | |
Ctrl-k: kills everything from the cursor to the end of line | |
Ctrl-b: moves cursor back (like the back arrow, but you don't have to move your hand as much) | |
Ctrl-f: moves the cursor forward | |
tab: completes the filename you are typing, very useful if you also set an environment | |
variable in your ~username/.tcshrc file like this "set autolist" alone on a line. Try the tab with | |
and without the environment variable. If you hate the beeping, put this environment variable | |
on another line "set nobeep" | |
The up arrow: scrolls through last commands | |
!!: The last command | |
!$: The last word of the last command, really cool when you are doing something with a file | |
Example: | |
% vi test.pl | |
% chmod +x !$ | |
% !$ | |
The shell will replace !$ with test .p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment