usermod Verified for current stable LTS

Usermod Command: Change User Home Directory Linux

Use for change user home directory linux with Usermod. Exact CLI syntax to change user home directory linux using Usermod.

When to use this: Use for change user home directory linux with Usermod.

Command Syntax

sudo usermod -m -d <path/to/new_home> <username>

Live Command Builder

Final Command

sudo usermod -m -d <path/to/new_home> <username>

Command Breakdown

-m
Command Option
Tool-specific option used by this command invocation.
-d
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to change user home directory 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

Back to Usermod directory