|
|
Save all of your Terminal activity to a file
Are you aware that everything you type into the terminal is already logged to the file .bash_history in your home directory? That is if you're using bash as your shell of course, but since it's the default, this will be the shell for most users.
Save all of your Terminal activity to a file
Actually, .bash_history just records the commands you've entered, not everything you've typed in Terminal, which is what 'script' does.
However, it's also good to use the following in your .bash_profile (or .bashrc) to record a longer amount of bash history:
Save all of your Terminal activity to a file
The problem with the history files is that the only thing saved there is what was the last terminal window. If you use multiple terminal windows, the history there can be somewhat mixed up.
Save all of your Terminal activity to a file
Actually you can save your history from multiple windows to a single .bash_history file. Here are some things related to history in my .bash_profile: Edited on May 11, '12 12:13:37PM by excarnate
Save all of your Terminal activity to a file
<deleted, redundant> Edited on May 11, '12 12:14:04PM by excarnate
Save all of your Terminal activity to a file
Two other important points, when using this feature. Close your shells using 'exit', not just allowing them to end. This forces a flush to the .bash_history. And you can also do |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|