Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Notes on .bash/tcsh_history files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Notes on .bash/tcsh_history files
Authored by: aixccapt99 on Mar 23, '04 11:03:10AM

The existence of these history files is a good reason to never put your password on the command line -- always let the program prompt you for it.

Other details:
The history file doesn't keep every command you've ever typed; instead it keeps the most recent xxx (I believe the default in bash is 500, and you can change the value if you want).

Also, the file is updated only on a clean shell exit -- during your session, it's cached in memory -- so if you close a Terminal window with the prompt still active, your history file won't contain whatever commands you issued that session.



[ Reply to This | # ]