1

I want to timeout "time" command. For example:

timeout -s 1 time sleep 5

I never get timeout. Is any way to do this?

3

The -s option in timeout is for mentioning signal to send.

You just need to remove -s:

timeout 1 time sleep 5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy