[NTLUG:Discuss] time

rmoncello@attbi.com rmoncello at attbi.com
Thu May 29 14:26:36 CDT 2003


'time' runs a command and tells you how long it took to execute:

leo:AMT:/home/users/rx4521-> time sleep 5

real    0m5.02s
user    0m0.01s
sys     0m0.01s
leo:AMT:/home/users/rx4521-> time echo HI!
HI!

real    0m0.00s
user    0m0.00s
sys     0m0.00s

'date' will provide you with the current date/time in a variety of formats:

leo:AMT:/home/users/rx4521-> date +%y%m%d
030529
leo:AMT:/home/users/rx4521-> date
Thu May 29 14:17:54 CDT 2003
leo:AMT:/home/users/rx4521-> date +%H:%M:%S
14:24:52
leo:AMT:/home/users/rx4521-> 
> I am looking at "time", that is  TIME(1), and I cannot seem to get it to 
> accept options or formats.  Even "time --help" returns "bash: --help: 
> command not found".  Any clues, hints, or insights, would be much 
> appreciated.
> 
> 
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss



More information about the Discuss mailing list