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
Git Commit Message Generator
Generate standardized Git commit messages following Conventi...
Color Shades & Tints Generator
Generate shades, tints, and tones from any base color. Expor...
Nginx Config Generator
Generate Nginx configuration files visually. Support static ...
Color Extractor
Extract colors from images online. Get dominant colors and c...
Code Analyzer
Analyze code quality online. Check for errors, warnings, and...
Code Formatter
Format and beautify code online. Support multiple languages ...
JavaScript Formatter
Format and beautify JavaScript code online. Improve code rea...
cURL Converter
Convert cURL commands to Python, JavaScript, PHP, Go, and mo...
Cron Expression Generator
Generate and validate Cron expressions online. Convert Cron ...
Timestamp Batch Converter
Convert multiple timestamps at once. Batch process Unix time...
API Tester
Test HTTP APIs online with support for GET, POST, PUT, DELET...
HTTP Header Analyzer
Analyze HTTP response headers. Check security headers, CORS ...