LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   time command (https://www.linuxquestions.org/questions/linux-general-1/time-command-264085/)

twantrd 12-08-2004 12:13 PM

time command
 
When running the command 'time' it gives:

real 0m0.161s
user 0m0.070s
sys 0m0.070s

What actually is user time and system time? I don't understand the difference. Can someone explain? Thanks!

-twantrd

sigsegv 12-08-2004 12:25 PM

Code:

TIME(1)               

NAME
    time - time command execution

SYNOPSIS
    time [-al] [-h | -p] [-o file] utility [argument ...]

DESCRIPTION
    The time utility executes and times the specified utility.  After the
    utility finishes, time writes to the standard error stream, (in seconds):
    the total time elapsed, the time used to execute the utility process and
    the time consumed by system overhead.

Courtesy of `man 1 time`

twantrd 12-08-2004 01:50 PM

Ahh thanks. My 'man time' didn't show that kind of description. Thank you!

-twantrd

sigsegv 12-08-2004 03:54 PM

Indeed. I should have mentioned that the description I posted was from a BSD machine. The reason I posted it was, like you, when I read the Linux man page for time I saw that it sucked :p


All times are GMT -5. The time now is 10:30 PM.