[Tfug] Unix Question

Felix Tilley fetilley at earthlink.net
Mon Sep 25 13:04:16 MST 2006


If using bash, look at the file .bash_history in
your $HOME directory.

You can set

HISTFILEZIZE=0

in your .bashrc file to suppress history logging.  I think

HISTFILESIZE=1000

is the default.  That means the last 1000 lines of
bash commands are logged.


==========================================================

Date: Sun, 24 Sep 2006 20:27:03 -0700
From: "Christopher Robbins" <robbinsc at gmail.com>
Subject: [Tfug] Unix Question
To: "Tucson Free Unix Group" <tfug at tfug.org>
Message-ID:
    <252d26630609242027h361490fbu335f9a7204b59b27 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Is there a way to grep the last few commands I've done and print them out or
pipe them to a file?

Thanks

-Chris





More information about the tfug mailing list