Learn › Linux Foundations
Time
Measure, repeat, and generate. Use time to benchmark commands, watch to monitor changes, sleep to add delays, yes for auto-confirmation, and seq to generate number sequences.
Labs in this module
- time - Put a stopwatch on any command with time. The three lines (real, user, sys) and what each means, timing a whole pipeline, and the external /
- watch - Turn any command into a live, full-screen dashboard with watch. The header-and-output frame, the -n heartbeat with fractions, -d to highligh
- sleep - Pause a shell for an exact duration with sleep. Seconds by default, the s/m/h/d suffixes for longer spans, decimals for fractions, and the &
- yes - Control the one command built to never stop. yes repeats a line forever, so you learn to bound it with head, swap its default y for your own
- seq - Print a run of numbers with seq. Count to a number, choose both ends, step by any amount (the middle number is the step), zero-pad to equal
- Mission Control: Operation Stopwatch - The Time module capstone mission. Drill time, watch, sleep, yes, and seq in one hands-on operation on a real Linux VM. Mission mode: no comm