[NTLUG:Discuss] time
Kelledin
kelledin+NTLUG at skarpsey.dyndns.org
Thu May 29 20:35:11 CDT 2003
On Thursday 29 May 2003 11:22 am, Fred James wrote:
> 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.
"date" is the standard UNIX command for setting the system time.
It typically allows setting the time to a 0.01-second
resolution.
Note that "date" doesn't actually commit anything to the hardware
(RTC) clock. Use "hwclock --systohc" to sync the RTC to the
system time. ;)
"time" is the standard UNIX command for measuring the elapsed
time of a command.
If you're running the bash shell, "time" is a shell keyword (it
works somewhat like a shell builtin). There's also a standalone
utility by the same name; its source code can be found in
ftp://ftp.gnu.org/pub/gnu/time/
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
More information about the Discuss
mailing list