timeout do?run a command, killing it if it runs longer than a time limit.
▸ Explain your own timeout command →$ timeout 10 ./run.sh
$ timeout -s KILL 30 python job.py
$ timeout -k 5 60 make
| -s | send this signal instead of SIGTERM when time runs out |
| -k | if still alive after this long, follow up with SIGKILL |
| --signal | send this signal instead of SIGTERM when time runs out |
| --kill-after | if still alive after this long, follow up with SIGKILL |
| --preserve-status | exit with the command's own status, not 124 |
| --foreground | let the command read from the terminal (don't isolate it) |
| -v | verbose — announce when the command is being signalled |
| --verbose | verbose — announce when the command is being signalled |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.