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


Click here to return to the 'This is unnecessary.' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
This is unnecessary.
Authored by: Chas on May 11, '12 08:03:23AM

Apparently you don't know that bash already has a history file ".bash_history" in your home directory. Just hit the up arrow to scroll through your previous commands. I don't know how big the default history is, but it can be expanded easily. RTFM.

Even if you wanted to do this log file (which you shouldn't) you're setting it up wrong. You should be doing this with environment variables and .bashrc



[ Reply to This | # ]