Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.