Linux Commands Reference - Complete Linux Command Guide
Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.
timeout
Kill command after specified time
Syntax
timeout [OPTION] DURATION COMMAND [ARG]...Common Options
-sSpecify signal to send-kSend SIGKILL after second duration--foregroundForeground mode-vVerbose output-eDon't timeout on non-zero exit--preserve-statusPreserve exit status on timeoutCommon Examples
timeout 5s ping google.comKill ping after 5s
timeout 1m ./long_script.shKill script after 1 minute
timeout -s SIGINT 10s commandSend SIGINT signal
timeout -k 30s 60s commandSIGTERM then SIGKILL
timeout --foreground 10s commandForeground timeout
timeout 5 bash -c "while true; do echo hi; sleep 1; done"Timeout control for loop
Related Tools
More Code & Dev Tools
Git Cheatsheet
Quick reference for common Git commands. Search, copy, and u...
Code Share
Create and share code snippets online. Syntax highlighting a...
HTML Formatter
Format and minify HTML online. Beautify HTML code or compres...
XML Formatter
Format and minify XML online. Beautify XML code or compress ...
CSS Gradient Generator
Generate CSS gradients online. Linear and radial gradients w...
Code Minifier
Minify HTML, CSS, and JavaScript code. Reduce file size by r...
API Tester
Test HTTP APIs online with support for GET, POST, PUT, DELET...
HTTP Status Codes
Reference guide for HTTP status codes. Learn the meaning of ...
JavaScript Obfuscator
Obfuscate and protect JavaScript code. Make your code harder...
JavaScript Formatter
Format and beautify JavaScript code online. Improve code rea...
Color Contrast Checker
Check color contrast ratios for WCAG compliance. Ensure acce...
SQL Formatter
Format and beautify SQL queries online. Improve SQL readabil...