Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy .sh_history

Status
Not open for further replies.

alan147

Technical User
Joined
Nov 15, 2002
Messages
128
Location
GB
Good morning

Is there a way I can make a duplicat copy of the .sh_history file as it is created. We have a user who is removing the file and I'm kind of curious to know what they are trying to hide.

Thanks

Alan
 
If you are root , you can try this:
nohup tail -f user_.sh_history >> your_file &
Then you can see what he does by watch your_file,
But the user can also use ps to see this process,
So use it carefully.
 
Thanks very much.

Alan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top