Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Local Development Environments Exploring Your IDE Introducing IDEs

Sina Maleki
Sina Maleki
6,135 Points

HOME DIRECTORY

Hi everyone Is there anybody know how can I set Home directory on Ubuntu? Best

1 Answer

How about this!

" Running

sudo usermod -d new_home_dir username

will change your home directory to new_home_dir and will also update the system file that stores the location of your home directory (/etc/passwd).

If you also want to move all files from your current home directory, use:

sudo usermod -d new_home_dir -m username

"

Stolen from this link