10
4
It would be great to access all my commands run in terminal on OS X so I can review and use as a running reminder sheet.
I'm using Reverse-I-Search prompt, and have updated my .bash_profile to store all of my history as mentioned here on Mactoids: How to search Terminal command history.
Start Terminal.
Navigate to the Home folder by entering:
cd ~/
Create .bash_profile by entering:
touch .bash_profile
Now, either edit .bash_profile in your favorite text editor or type this in the Terminal window to automatically open the file in the default TextEdit:
open -e .bash_profile
Lastly, add this to the .bash_profile file:
HISTFILESIZE=1000000000 HISTSIZE=1000000
Save and exit.
Do you have any ideas how I could access in order to output the terminal command history in OS X?
4I presume you've read
man bash
, so you should know that the history is stored in the file~/.bash_history
. What else do you need to know, can you clarify? – None – 2011-07-10T21:46:18.157Yes, because I new the 'man' command existed then read the manual found the answer and decided to ask the question above just for the fun of it. Thanks fideli for quick, clear and unpretentious answer. – Cameron McGrane – 2011-07-11T01:15:36.817