The 'time' command
will tell you the answer.
'man time'.
Syntax:
time
For Ex:
$ /usr/bin/time find / -name csh.1 -print
real 1:15.5
(time elapsed between
invocation and
termination)
user 0.3
(time spent in user
process code)
sys 3.3
(time spent in system
code)
The executable/command
is run by the 'time'
as a child process and
then elapsed, user,
system time are reported.
There is a csh version
of 'time'. It will
report the time in
different format.
This tip generously supported by: M.Nithyanandham@blr.spcnl.co.in NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.