timeout Command Examples

Run a command with a time limit. More information: https://www.gnu.org/software/coreutils/manual/html_node/timeout-invocation.html.

timeout 3s sleep 10

timeout {{[-s|--signal]}} {{INT|HUP|KILL|...}} {{5s}} {{sleep 10}}

timeout {{[-v|--verbose]}} {{0.5s|1m|1h|1d|...}} {{command}}

timeout {{[-p|--preserve-status]}} {{1s|1m|1h|1d|...}} {{command}}

timeout {{[-k|--kill-after]}} {{5m}} {{30s}} {{command}}