View Single Post
  #2   (View Single Post)  
Old 2nd May 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
Join Date: Apr 2008
Posts: 537

tcsh's history-search-forward/backward is a nifty feature and AFAIK bash doesn't have have it.
type the first few chars of any previous command and press up arrow to cycle through the matching commands in history.

tip: you will need to run rehash to use a newly command/utility installed while you are logged in.

some differences:
Tcsh                                           Bash

cmd >& file                                   cmd >file 2>&1
source .cshrc                                 . bashrc
prompt                                         PS1
Ctrl-d                                            Tab-Tab
.cshrc                                            .bashrc
setenv PATH ${PATH}:/opt             export PATH=${PATH}:/opt

tcsh has a whole bunch of other cool features that makes it a first class interactive shell. read the excellent man page for more.

Last edited by ephemera; 2nd May 2008 at 05:01 PM.
Reply With Quote