Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to move my present home directory to another directory in my virtual-box ubuntu 12.04 distro. Here is what I want:

Right now my present home directory is located at /home/jhon.

But I want to change it to /home/users/jhon

How do I do that? So that when I type $HOME, it should point to /home/users/jhon

share|improve this question
sudo usermod -d /home/users -m

should move all files form your old home (/home/) to your new home (/home/users/) and update all files that need to be updated (like /etc/passwd).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.