times
process managementLinux/Unix
The times command is one of the most frequently used commands in Linux/Unix-like operating systems. times Display process time information for the current shell and its children
Quick Reference
Command Name:
times
Category:
process management
Platform:
Linux/Unix
Basic Usage:
times [options] [arguments]
Common Use Cases
Syntax
times
Options
| Option | Description |
|---|---|
The times command does not accept any options. |
|
Examples
How to Use These Examples
The examples below show common ways to use the times command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
Display time statistics for the current shell
times
Do some work
for i in {1..1000}; do
Advanced Examples:
Compare times before and after an operation
times
Perform some operation
sleep 2
Use with time command to measure operation duration
times
Redirect times output to a file
times > process_times.txt
Use with CPU-intensive operations
times
Perform CPU-intensive operation
for i in {1..50000}; do