Operating System - HP-UX
1836416 Members
2492 Online
110100 Solutions
New Discussion

Timestamping entries in a history file

 
SOLVED
Go to solution
donC_1
Occasional Advisor

Timestamping entries in a history file

Is there a way to timestamp each entry in a users history file (.sh_hist.XXuserXX)? Ideally what I would like to have the file look like would be something like:

17Jun/0857: cd /tmp/jdoe
17Jun/0859: chmod 755 myfile
17Jun/0901: ls -al



1 REPLY 1
harry d brown jr
Honored Contributor
Solution

Re: Timestamping entries in a history file

Nope - but I guess you could get a copy of ksh or sh and modify it.

You could look into turning on accounting:
man acct

live free or die
harry
Live Free or Die