July 1995
Beginner to intermediate
244 pages
5h 58m
English
Each command you issue is an event that goes in your history list. To see what's in the list, use the history command. In csh, each output line displayed by history includes an event number and the command to which the event corresponds:
%history683 cd ˜/src/rtf 684 more Imakefile 685 make World >& make.world 686 more make.world 687 make clean 688 cd .. 689 tar cf rtf.tar rtf 690 gzip rtf.tar 691 ftp 144.92.43.19 692 uuencode rtf.tar.gz rtf.tar.gz > rtf.tar.gz.uu 693 mail -s 'New RTF distribution' rtf-list < rtf.tar.gz.uu 694 rm rtf.tar.gz*etc.
In tcsh, history lines also include a time stamp.
Output from the history command grows quite long if you set the history variable to a large number. You can pipe the output through more or supply a numeric argument specifying how many lines to display:
%history | moreDisplay history using pager %history 5Display last five commands
tcsh and most versions of csh understand both commands shown above. Some versions of csh botch one command or the other, in which case you'll need to use the one that works.
Read now
Unlock full access