syntax for outputing past bash commands to a .txt file

Brian Cluff plug-discuss@lists.plug.phoenix.az.us
25 Jul 2002 09:11:59 -0700


I prefer to do CTRL+r and it will interactivly search though the history
for a command that I previously typed.  This can get a little annoying
if you have typed a bunch of similar commands between then one you are
looking for though.

Brian Cluff

On Thu, 2002-07-25 at 08:47, Bob Cober wrote:
> history  >> somefile.txt
> 
> also a good way to find some command from the past you can't remember
> 
> history | grep thecommandyoucantremember
> 
> 
> 
> ----- Original Message -----
> From: "Alpha Zenon Sanchez" <alpha_zenon@yahoo.com>
> To: <plug-discuss@lists.plug.phoenix.az.us>
> Sent: Thursday, July 25, 2002 7:22 AM
> Subject: 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
> > ________________________________________________
> > See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't
> post to the list quickly and you use Netscape to write mail.
> >
> > PLUG-discuss mailing list  -  PLUG-discuss@lists.plug.phoenix.az.us
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
> 
> PLUG-discuss mailing list  -  PLUG-discuss@lists.plug.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss