Linux Commands Reference - Complete Linux Command Guide
Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.
usermod
Modify user account properties
Syntax
usermod [OPTION]... USERNAMECommon Options
-lChange username-dChange home directory-sChange login shell-gChange primary group-GChange supplementary groups-aGAppend to supplementary groups-LLock account-UUnlock account-eSet expiry date-cChange comment-uChange user IDCommon Examples
usermod -aG docker usernameAdd user to docker group
usermod -s /bin/zsh usernameChange user shell
usermod -l newname oldnameRename user
usermod -L usernameLock user account
usermod -U usernameUnlock user account
usermod -d /new/home -m usernameMove home directory
usermod -e 2025-12-31 usernameSet expiry date
usermod -G group1,group2 usernameSet supplementary groups
Related Tools
More Code & Dev Tools
Timestamp Batch Converter
Convert multiple timestamps at once. Batch process Unix time...
CSS Formatter
Format and minify CSS online. Beautify CSS code or compress ...
JavaScript Obfuscator
Obfuscate and protect JavaScript code. Make your code harder...
SQL Formatter
Format and beautify SQL queries online. Improve SQL readabil...
Timestamp Converter
Convert between Unix timestamp and human-readable date. Supp...
CSS Gradient Generator
Generate CSS gradients online. Linear and radial gradients w...
Regex Cheatsheet
Quick reference for regular expression patterns. Character c...
Color Palette Generator
Generate harmonious color palettes online. Create color sche...
WebSocket Tester
Test WebSocket connections and messages in real-time. Connec...
Code Share
Create and share code snippets online. Syntax highlighting a...
Color Extractor
Extract colors from images online. Get dominant colors and c...
cURL Converter
Convert cURL commands to Python, JavaScript, PHP, Go, and mo...