Viewing Session History in the csh Shell

If you’re a C programmer (or have C programmers to turn to for help), csh might be a good shell for you because the syntax is quite similar to the C programming language.csh doesn’t offer command completion, but the history capabilities are fairly similar to those of bash or zsh (see Code Listing 3.14). In general, csh is a powerful scripting shell (and acceptable interactive shell) for those who take the time and effort to become familiar with it.

Code Listing 3.14. csh also lets you recycle commands by number, although other history functions are not available.
xmission> history 1 ls 2 vi temp.info 3 ls 4 cd pub* 5 ls 6 cp *.pdf .. 7 cd .. 8 rm *.pdf 9 history 10 lynx 11 ftp ftp.wustl.edu 12 ls 13 vi ...

Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.