Installation $ [sudo] pip install shell-timeout $ [sudo] npm i -g shell-timeout How it works If the command times out, then exit with status 124. Otherwise, exit with the status of COMMAND Examples $ timeout 1 sleep 2 readme42.com