TIMEOUT(1)
β¨ TIMEOUT(1) β or, how to give your command a bedtime π
okay so bestie, listen β this is timeout from the uutils coreutils manual, and honestly? she's the friend who tells you "you have five more minutes" and actually means it. No cap. π«Ά
πΈ NAME πΈ
timeout β Start COMMAND, and kill it if still running after DURATION.
Literally that's the whole vibe. You give a command a time limit, and if it's still out there past curfew, it gets yeeted. π
π SYNOPSIS π
timeout [OPTION] DURATION COMMAND...
Options first, then how long you're willing to wait, then the actual command. In that order, bestie. Order matters. π₯
π DESCRIPTION π
Start COMMAND, and kill it if still running after DURATION.
That's it. That's the energy. One job, doing it iconically. β¨
π OPTIONS π
-f,--foregroundβ for when you're not runningtimeoutstraight from a shell prompt: this lets COMMAND read from the TTY and catch TTY signals. Real talk though β in this mode, children of COMMAND do not get timed out. So like, the vibes are permissive. π-k,--kill-afterβ if COMMAND is still hanging around this long after the initial signal was sent, send a KILL signal too. It's the "I wasn't asking" follow-up. π-p,--preserve-statusβ exit with the same status as COMMAND, even when the command times out. So you can be like "whatever she said, I said." π-s,--signalSIGNAL β pick which signal gets sent on timeout. SIGNAL can be a name like'HUP'or a number; runkill -lfor the full menu of signals. Choose your fighter. β-v,--verboseβ diagnose to stderr any signal sent upon timeout. She's narrating her own drama, love that for her. π¦-h,--helpβ Print help. π-V,--versionβ Print version. π
π§ ARGUMENTS π§
- <duration> β a floating point number with an optional suffix:
's'for seconds (the default),'m'for minutes,'h'for hours or'd'for days ; a duration of0disables the associated timeout. Yep, zero = the timeout just doesn't exist. Main character says no curfew, curfew says nothing. π - <command> β a command to execute with optional arguments. Your little star of the show. π
π₯ EXTRA π₯
Upon timeout, send the TERM signal to COMMAND, if no other SIGNAL specified. The TERM signal kills any process that does not block or catch that signal. It may be necessary to use the KILL signal, since this signal can't be caught.
ngl,KILLis the one that truly cannot be caught β it's giving "no thoughts, no handlers, just vibes and consequences." Use it whenTERMisn't landing. π
Exit status, bestie β memorize these, they'll come up:
124 if COMMAND times out, and --preserve-status is not specified
125 if the timeout command itself fails
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
(128+9)
- the exit status of COMMAND otherwise
So 124 is the classic "she ran out of time," 125 is "timeout herself fumbled," 126 is "found her but couldn't get her to come out," 127 is "she doesn't even go here" (can't be found), 137 is the KILL (9) situation β and that's 128+9 for the math girlies β and a plain - means it's just COMMAND's own exit status. π
π VERSION π
v(uutils coreutils) 0.12.0
and that's the whole page, bestie π β written up on 2026-09-17, straight from the coreutils girlies themselves. go set some boundaries with your processes, you got this. π«Άβ¨πΈ
π¦ where this page comes from
- arch rolling: uutils-coreutils 0.12.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms