Linux Commands Reference - Complete Linux Command Guide
Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.
sudo
Execute command as another user
Syntax
sudo [OPTION]... COMMANDCommon Options
-uExecute as specified user-iSimulate initial login-sRun shell as root-lList sudo privileges-kInvalidate timestamp-vUpdate timestamp-bRun in background-EPreserve environmentCommon Examples
sudo apt updateUpdate packages as root
sudo -u postgres psqlExecute as postgres user
sudo -iSwitch to root shell
sudo -lCheck sudo privileges
sudo -sRun shell as root
sudo -kInvalidate sudo cache
Related Tools
More Code & Dev Tools
XML Formatter
Format and minify XML online. Beautify XML code or compress ...
CSS Formatter
Format and minify CSS online. Beautify CSS code or compress ...
API Tester
Test HTTP APIs online with support for GET, POST, PUT, DELET...
SQL Formatter
Format and beautify SQL queries online. Improve SQL readabil...
Code Share
Create and share code snippets online. Syntax highlighting a...
Regex Cheatsheet
Quick reference for regular expression patterns. Character c...
Color Palette Generator
Generate harmonious color palettes online. Create color sche...
Code Analyzer
Analyze code quality online. Check for errors, warnings, and...
Color Extractor
Extract colors from images online. Get dominant colors and c...
Color Contrast Checker
Check color contrast ratios for WCAG compliance. Ensure acce...
Code Formatter
Format and beautify code online. Support multiple languages ...
Code Minifier
Minify HTML, CSS, and JavaScript code. Reduce file size by r...