This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Linux / UNIX and the fly likes Log for history session and user specific ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Log for history session and user specific ..." Watch "Log for history session and user specific ..." New topic
Author

Log for history session and user specific ...

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Hi,

how can I create a script on linux that records every command entered and appends every change made and closes the file after the session terminates or the user quits.. I thought about changing the .bashrc file but how can it be done >?? thank you


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Satish Chilukuri
Ranch Hand

Joined: Jun 23, 2005
Posts: 266
Originally posted by Vassili Vladimir:
Hi,

how can I create a script on linux that records every command entered and appends every change made and closes the file after the session terminates or the user quits.. I thought about changing the .bashrc file but how can it be done >?? thank you


bash already has a feature for logging commands. They are stored in .bash_history in the user's home directory.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Log for history session and user specific ...