timeout

timeout examples

timeout --kill-after=5s 10s sleep 8

Run a command for a while and set a timeout to it, after which is will be terminated automatically