Skip to content
Move Linux user directory

Move Linux user directory

2025-01-01

Use the usermod command to move one user’s home dir.

Login as another user with sudo rights.

sudo pkill -u $USER                # kill user processes
sudo usermod -m -d /new/home $USER # Change user home dir (-d) and move (-m) the content into the new folder
Last updated on