Skip to content
usermod to move user directory

usermod to move user directory

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