usermod
Verified for current stable LTS
Usermod Command: Change Username Linux
Use for change username linux with Usermod. Exact CLI syntax to change username linux using Usermod.
When to use this: Use for change username linux with Usermod.
Command Syntax
sudo usermod -l <new_username> <username> sudo usermod -l <new_username> <username> Live Command Builder
Final Command
sudo usermod -l <new_username> <username> Command Breakdown
-l- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to change username linux using Usermod.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Usermod Command: Add User To Groups Linux
sudo usermod -aG <group1,group2,...> <username> Usermod Command: Change User Home Directory Linux sudo usermod -m -d <path/to/new_home> <username> Usermod Command: Change User Id Linux sudo usermod -u <id> <username> Usermod Command: Change User Shell Linux sudo usermod -s <path/to/shell> <username> Usermod Command: Lock Account Linux sudo usermod -L <username>