timeout(1)
π timeout β the manual page, but make it make sense π
okay bestie, you know that one command in the uutils coreutils set that's like "run this thing, but if it's still being dramatic after a while, we're ending it"? yeah. that's timeout. she's the group-chat admin of processes and honestly? iconic. let's get into it π«Ά
β¨ NAME β¨
timeout β start COMMAND, and kill it if it's still running after DURATION. no cap, that's the whole job. she gives COMMAND a deadline and she MEANS it π
π SYNOPSIS π
timeout [-f|--foreground] [-k|--kill-after] [-p|--preserve-status]
[-s|--signal] [-v|--verbose] [-h|--help] [-V|--version] <duration>
<command>
likeβ¦ look at her. she's got options. she's got range. she's got <duration> and <command> and a whole lot of attitude β¨
πΈ DESCRIPTION πΈ
Start COMMAND, and kill it if it's still running after DURATION.
that's it. that's the vibe. you hand her a command, you hand her a time limit, and if that command is still going when the clock runs out, she ends it. no hesitation. main character energy fr fr π
π¦ OPTIONS π¦
-f,--foregroundβ when you're not runningtimeoutdirectly from a shell prompt, this lets COMMAND read from the TTY and get TTY signals. heads up though: in this mode, children of COMMAND will not be timed out. so like, the babies are safe, only the parent gets the timer π₯²-k,--kill-afterβ also send a KILL signal if COMMAND is still running this long after the initial signal was sent. basically the "okay I asked nicely, now I'm not asking" option π-p,--preserve-statusβ exit with the same status as COMMAND, even when the command times out. so you get COMMAND's actual vibe as your exit code, not the timeout one π-s,--signal <SIGNAL>β specify the signal to be sent on timeout. SIGNAL can be a name like'HUP'or a number. seekill -lfor a list of signals π-v,--verboseβ diagnose to stderr any signal sent upon timeout. she'll tell you exactly what she did and why. transparent queen β¨-h,--helpβ Print help π-V,--versionβ Print version π·οΈ<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. yes bestie,0means the timer is OFF, she's just gonna stand there π°οΈ<command>β a command to execute with optional arguments. this is the thing getting timed out, so choose wisely π
π 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.
so like,TERMis the polite ask. some processes be catching it and ignoring it (rude).KILLcan't be caught by anyone. that's the nuclear option and she will use it π
Exit status:
124β if COMMAND times out, and--preserve-statusis not specified125β if the timeout command itself fails126β if COMMAND is found but cannot be invoked127β if COMMAND cannot be found137β if COMMAND (or timeout itself) is sent theKILL(9) signal (128+9)-β the exit status of COMMAND otherwise
β VERSION β
v(uutils coreutils) 0.7.0
and that's the whole page, bestie. timeout (uutils coreutils) 0.7.0, straight from the General Commands Manual to your group chat π go forth and time things out responsibly. iykyk π§ββοΈπΈ
π¦ where this page comes from
- epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
- epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
- fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
- fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms