Sunday, January 5, 2014

How to display your bash history on OSX

To diplay (in a new TextEdit window) the last commands typed in your terminal, just open a new terminal, give the command cd to go into your home folder and type this command:

open .bash_history

By default,  the number of lines saved in your .bash_history file is set to 500.

No comments:

Post a Comment

Your comment will be visible after approval.