syntax for outputing past bash commands to a .txt file

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Alpha Zenon Sanchez
Dátum:  
Tárgy: syntax for outputing past bash commands to a .txt file
I know I've seen it before on the internet somewhere
or perhaps it was this discussion group. I can't
recall...

My question is this:

What's the exact syntax to print to a text file, a
history of commands you've typed on the command shell?

Or is there a file in my OS (Mandrake 8.1) where I can
view like say....my last 20 or so commands?

Thanks in advance,
Alpha Z Sanchez


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com