Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'More tcsh fun (save time typing in the shell)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
More tcsh fun (save time typing in the shell)
Authored by: Anonymous on May 08, '01 11:19:10PM

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 .pl


There are lots of other tricks, but these are the ones I use the most, and the tcsh manpage is somewhat long-winded.



[ Reply to This | # ]
More tcsh fun (save time typing in the shell)
Authored by: Anonymous on May 09, '01 04:40:24AM

And some of those are also mapped to Command keys.
So Command (aka Apple)-K will clear the screen, too, as I found by accident ;-)

Maybe there are more of those...
iSee



[ Reply to This | # ]
More tcsh fun (save time typing in the shell)
Authored by: olly73 on May 09, '01 05:43:40AM

only CTRL+L will clear the screen. command + a change the background color.



[ Reply to This | # ]
Command vs option
Authored by: robg on May 09, '01 09:04:16AM

Actually, COMMAND-A is selecting all the text, which is why the screen appears to change colors; if you hit OPTION-A, the screen will clear.



[ Reply to This | # ]