LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 04-24-2015, 11:26 PM   #1
gdizzle
Member
 
Registered: Jul 2012
Posts: 234

Rep: Reputation: Disabled
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
 
Old 04-25-2015, 01:53 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,940

Rep: Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324Reputation: 7324
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.
 
Old 04-26-2015, 05:56 PM   #3
gdizzle
Member
 
Registered: Jul 2012
Posts: 234

Original Poster
Rep: Reputation: Disabled
Good points Pan, especially about the .bash history.

Was just curious if anyone is using change control at the bash shell.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Revision history / version control for shell script me_spearhead Linux - General 2 05-24-2012 05:19 PM
Bash out of control ? nnjond Linux - Newbie 6 07-15-2010 03:44 PM
BASH shell temporary history WingnutOne Linux - Newbie 10 09-16-2007 01:37 AM
LXer: Take Control in the Bash Shell LXer Syndicated Linux News 0 07-28-2006 08:54 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 07:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration