Linux Commands Reference - Complete Linux Command Guide
Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.
exit
Exit the shell
Syntax
exit [N]Common Options
NSpecify exit code (0-255)0Success exit1General error2Misuse of shell command126Command not executable127Command not found130Ctrl+C interruptCommon Examples
exitExit current shell
exit 0Success exit
exit 1Error exit
exit $?Use last command exit code
if [ -f file ]; then echo "found"; else exit 1; fiConditional exit
(exit 42); echo $?Exit in subshell, get code
Related Tools
More Code & Dev Tools
SQL Formatter
Format and beautify SQL queries online. Improve SQL readabil...
JavaScript Obfuscator
Obfuscate and protect JavaScript code. Make your code harder...
Color Contrast Checker
Check color contrast ratios for WCAG compliance. Ensure acce...
Timestamp Converter
Convert between Unix timestamp and human-readable date. Supp...
Code Analyzer
Analyze code quality online. Check for errors, warnings, and...
CSS Formatter
Format and minify CSS online. Beautify CSS code or compress ...
Git Cheatsheet
Quick reference for common Git commands. Search, copy, and u...
Regex Cheatsheet
Quick reference for regular expression patterns. Character c...
Code Minifier
Minify HTML, CSS, and JavaScript code. Reduce file size by r...
Color Extractor
Extract colors from images online. Get dominant colors and c...
API Tester
Test HTTP APIs online with support for GET, POST, PUT, DELET...
cURL Converter
Convert cURL commands to Python, JavaScript, PHP, Go, and mo...