Linux Commands Reference - Complete Linux Command Guide
Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.
useradd
Create a new user account
Syntax
useradd [OPTION]... USERNAMECommon Options
-mCreate home directory-dSpecify home directory-sSpecify login shell-gSpecify primary group-GSpecify supplementary groups-uSpecify user ID-cSet comment field-eSet expiry date-pSet encrypted password-rCreate system user-kSpecify skeleton directoryCommon Examples
useradd -m newuserCreate user with home dir
useradd -m -s /bin/bash newuserCreate user with specific shell
useradd -m -g developers -G docker newuserSpecify primary and groups
useradd -r -s /sbin/nologin serviceuserCreate system service user
useradd -m -d /home/custom newuserCustom home directory
useradd -m -e 2025-12-31 tempuserSet expiry date
useradd -m -u 2000 newuserCreate with specific UID
useradd -m -c "John Doe" johndoeSet user comment
Related Tools
More Code & Dev Tools
Color Extractor
Extract colors from images online. Get dominant colors and c...
CSS Formatter
Format and minify CSS online. Beautify CSS code or compress ...
Color Contrast Checker
Check color contrast ratios for WCAG compliance. Ensure acce...
Color Converter
Convert between HEX, RGB, HSL color formats. Color picker wi...
Cron Expression Generator
Generate and validate Cron expressions online. Convert Cron ...
XML Formatter
Format and minify XML online. Beautify XML code or compress ...
Port Checker
Check if a port is open online. Test port availability and c...
Git Cheatsheet
Quick reference for common Git commands. Search, copy, and u...
CSS Gradient Generator
Generate CSS gradients online. Linear and radial gradients w...
Code Analyzer
Analyze code quality online. Check for errors, warnings, and...
Timestamp Converter
Convert between Unix timestamp and human-readable date. Supp...
SQL Formatter
Format and beautify SQL queries online. Improve SQL readabil...