Solaris Command

Hi,

I want to know is it possible to know the time of command user has executed ?

If you're using Process Accounting - yes

# # turn process accounting on
# /usr/lib/acct/accton /var/adm/pacct 
# # execute some commands
# pwd
/root
# df -h > /dev/null
# # check commands executed
# lastcomm
df          root     pts/3          0.00 secs Wed Jul 25 22:34
accton   S  root     pts/3          0.00 secs Wed Jul 25 22:34
# # turn process accounting off
# /usr/lib/acct/accton

man accton

Cheers,
ZB

Or if it's just one command you want the time of, just use the "time" command before running it.

For example:

myhost:/tmp # time ls -lR * > /dev/null

real 0m0.005s
user 0m0.001s
sys 0m0.004s