Move Linux user directory
Move Linux user directory
January 10, 2025
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 folderLast updated on