Change Control at the Bash Shell? Version Control of Bash History
Hi All,
I was wondering if anyone uses version control at the bash shell , on there Linux Hosts at the shell in their Enterprise. If so I was interested to know what solutions have been implemented. What I was ideally after was, a git or svn repository that could have a list of servers and dates and archive of any commands typed into the shell which then could be accessed by a web browser. A great solution I have seen for this on Routers and Switches is "Rancid" but I have not seen anything for the Linux Bash Shell. For example track changes to the .bash_history, or can git just do this out of the box...?? Please educate me on this... Thanks |
I do not think git can do it "just out of the box". Also I do not think .bash_history has versions and changes can be easily tracked that way. I would rather try to copy that file time to time into a directory (and put it into git if you wish). We also should know if the servers use common home dirs (therefore there will be only one .bash_history), or for example every terminal has its own one.
|
Good points Pan, especially about the .bash history.
Was just curious if anyone is using change control at the bash shell. |
All times are GMT -5. The time now is 10:09 AM. |