Click to See Complete Forum and Search --> : history


weezle
06-27-2001, 06:18 PM
Hello everyone!

I'm running RedHat 7.0 and was wondering, is there a way to delete or "clean-up" the commands in the history list? The question may sound retarted but not really sure how to ask the question. I know I'll get flamed for this - but the only user I have right now is root. It would make it easier for look back through the commands I've entered if I could get rid of bunch of "junk" commands.

:D

demetrius
06-27-2001, 07:36 PM
The file that stores your command history (assuming you're using Linux's default shell which is bash) is located in your home directory and called .bash_history. You can open it in any text editor if you want to remove some of the 'junk' commands.
BTW, its neither smart nor safe to run as root. You really should add an ordinary user and do your day to day work as that user. Anything that needs to be done as root can be accomplished using the 'su' command.

weezle
06-28-2001, 10:57 AM
Demetrius...

Thanks for the help. I am using bash so your suggestion worked perfectly. I will heed your advice and create another user and su when needed.

:cool: