Linux

Bounding a command's runtime in Linux

LinuxSignals & Job Controltimeoutintermediate

What this snippet does

timeout kills the command after the deadline and exits 124, which scripts can detect.

Expected output

exit=124

Why practise typing this

Typing signals & job control code builds muscle memory for the symbols and indentation Linux uses most, which prose-based typing tests never cover. DevType measures your words per minute and accuracy on this snippet and tracks the individual characters you mistype, so later lessons can target them.

More Linux practice

Browse all Linux snippets →