Time (Unix)
From DssWiki
{{DISPLAYTITLE:{{#if:|:|}}time (Unix)}} Template:Two other uses
time is a command in the Unix operating systems. It is used to determine the duration of execution of a particular command. To use the command, simply precede any command by the word time, such as:
time ls
When the command completes, time will report how long it took to execute in terms of user CPU time, system CPU time, and real time. The output format varies between different versions of the command, and some give additional statistics, as in this example:
$ time host wikipedia.org wikipedia.org has address 207.142.131.235 0.000u 0.000s 0:00.17 0.0% 0+0k 0+0io 0pf+0w $
time(1) can exist as a standalone program (such as GNU time) or as a shell builtin (e.g. in tcsh or in zsh).
[edit] See also
[edit] External links
|Linux|default}}|1|time|url}} time{{#if:{{Man/{{#if:Linux |Linux|default}}|1|time|display_section}}|({{Man/{{#if:Linux |Linux|default}}|1|time|display_section}})}}]{{#if:time a simple command or give resource usage|: time a simple command or give resource usage}}{{#if:{{#ifeq: |inline||{{Man/{{#if:Linux |Linux|default}}|1|time|attrib}}}}| – {{#ifeq: |inline||{{Man/{{#if:Linux |Linux|default}}|1|time|attrib}}}}}}
{{#if: |
Unix command line programs and builtins (more) | |||
| File and file system management: | cat | chattr | cd | chmod | chown | chgrp | cksum | cmp | cp | du | df | file | fsck | fuser | ln | ls | lsof | mkdir | mount | mv | pwd | rm | rmdir | split | touch | ||
| Process management: | at | chroot | crontab | exit | kill | killall | nice | pgrep | pidof | pkill | ps | sleep | time | top | wait | watch | ||
| User Management/Environment: | env | finger | id | mesg | passwd | su | sudo | uname | uptime | w | wall | who | whoami | write | ||
| Text processing: | awk | comm | cut | ed | ex | fmt | head | iconv | join | less | more | paste | pg | sed | sort | tac | tail | tr | uniq | wc | xargs | ||
| Shell programming: | basename | echo | expr | false | printf | test | true | unset | Printing: | lp |
| Communications: inetd | netstat | ping | rlogin | traceroute | Searching: find | grep | strings | Miscellaneous: banner | bc | cal | dd | man | size | yes | |
