How To Install Timeout On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Timeout On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

timeout

Run a command with a time limit.

Maintainer: Michael Stone



Section: utils

Install timeout

  • Debian apt-get install coreutils Click to copy
  • Ubuntu apt-get install coreutils Click to copy
  • Alpine OS apk add coreutils Click to copy
  • Arch Linux pacman -S coreutils Click to copy
  • Kali Linux apt-get install coreutils Click to copy
  • CentOS yum install coreutils Click to copy
  • Fedora dnf install coreutils Click to copy
  • Raspbian apt-get install coreutils Click to copy
  • macOS brew install coreutils Click to copy

Run a command with a time limit.

How to use timeout?

Below are few example commands for timeout that you can use in the terminal.

Run `sleep 10` and terminate it, if it runs for more than 3 seconds:
timeout 3s sleep 10Click to copy
Specify the signal to be sent to the command after the time limit expires. (By default, TERM is sent):
timeout --signal INT 5s sleep 10Click to copy
Installation of latest timeout command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.