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
posted
0
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.