TIMEOUT(1)

๐Ÿ“ฆ
version 9.10 ยท 5 versions
, in ubuntu stonking

โœจ TIMEOUT(1) โ€” like, the manual page, bestie โœจ

okay so this is timeout from the GNU coreutils squad, and honestly? she's an icon ๐Ÿ‘‘


๐Ÿ’– NAME ๐Ÿ’–

timeout โ€” run a command with a time limit, girl. you give her a deadline and she enforces it ๐Ÿ•๐Ÿ’…


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

timeout [OPTION]... DURATION COMMAND [ARG]...

๐ŸŒธ DESCRIPTION ๐ŸŒธ

So the vibe is: start COMMAND, and if it's still running after DURATION, kill it. That's it. That's the whole personality ๐Ÿ˜ญ๐Ÿ”ฅ

mandatory arguments to long options are mandatory for short options too โ€” no skipping, bestie ๐Ÿ™ˆ

Here are all the flags, no gatekeeping:

  • -f, --foreground โ€” for when you're not running timeout straight from a shell prompt: this lets COMMAND read from the TTY and get TTY signals. in this mode tho, the children of COMMAND will not be timed out. iykyk ๐Ÿซถ
  • -k, --kill-after=DURATION โ€” also sends a KILL signal if COMMAND is still running this long after that first signal got sent. double tap, periodt ๐Ÿ’€
  • -p, --preserve-status โ€” exit with the same status as COMMAND, even when the command times out. she's loyal like that ๐Ÿฅบ
  • -s, --signal=SIGNAL โ€” pick which signal gets sent on timeout. SIGNAL can be a name like 'HUP' or just a number. see kill -l for the full list of signals ๐Ÿ‘‘
  • -v, --verbose โ€” diagnose to standard error any signal sent upon timeout. so she'll actually tell you what she did โœจ
  • --help โ€” display this help and exit ๐Ÿ’–
  • --version โ€” output version information and exit ๐ŸŒˆ

okay so about DURATION: it's a floating point number with an optional suffix โ€”

  • 's' for seconds (this is the default, no cap)
  • 'm' for minutes
  • 'h' for hours
  • 'd' for days

and a duration of 0 disables the associated timeout. zero means "live your life, i'm not timing you" ๐Ÿฆ‹


Upon timeout, timeout sends the TERM signal to COMMAND, unless you specified some other SIGNAL. The TERM signal kills any process that does not block or catch that signal. Sometimes you gotta bring out the KILL signal instead, because that one literally can't be caught. it's giving unstoppable ๐Ÿ’…


๐Ÿšช Exit status: ๐Ÿšช

  • 124 โ€” if COMMAND times out, and --preserve-status is not specified
  • 125 โ€” if the timeout command itself fails (not her fault, ok? ๐Ÿ˜ญ)
  • 126 โ€” if COMMAND is found but cannot be invoked
  • 127 โ€” if COMMAND cannot be found
  • 137 โ€” if COMMAND (or timeout itself) is sent the KILL (9) signal (that's 128+9, math girlies rise ๐Ÿงฎโœจ)
  • - โ€” the exit status of COMMAND otherwise

๐Ÿ’€ BUGS ๐Ÿ’€

Some platforms don't currently support timeouts beyond the year 2038. so like... future problems, bestie ๐Ÿ™ˆ


๐Ÿซถ AUTHOR ๐Ÿซถ

Written by Padraig Brady. king behavior ๐Ÿ‘‘


๐Ÿ˜ญ REPORTING BUGS ๐Ÿ˜ญ


๐ŸŒˆ SEE ALSO ๐ŸŒˆ


and that's the whole page, pookie ๐ŸŽ€ this version was GNU coreutils 9.10, dated August 2026, and it's packaged by Ubuntu (9.10-1ubuntu2) โ€” shoutout ๐Ÿ’œ

Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from