Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

time

Measure command execution time

Syntax

time COMMAND [ARG]...

Common Options

-pPOSIX format output
-o FILEOutput to file
-aAppend to file (with -o)
-f FORMATCustom output format
-vVerbose output

Common Examples

time ls -la

Measure ls execution time

time -p sleep 2

POSIX format output

time -v find / -name "*.txt"

Verbose output

time -o timing.txt make

Write timing to file

/usr/bin/time -f "%e" sleep 1

Output elapsed time only

time (make && make test)

Measure combined commands

Related Commands

Related Tools

More Code & Dev Tools