How does one change user's home directory in Ubuntu 9.04?

Does any person recognize just how I might transform my home directory in the shell please?

41
2022-06-07 14:35:34
Source Share
Answers: 2

I have actually not attempted this, yet I assume you can transform it in/ etc/passwd.

4
2022-06-07 15:04:41
Source

Running

sudo usermod  -d new_home_dir  username

will certainly transform your home directory to new_home_dir and also will certainly additionally upgrade the system documents that saves the area of your home directory (/etc/passwd).

If you additionally intend to relocate all documents from your existing home directory, usage:

sudo usermod  -d new_home_dir  -m  username
64
2022-06-07 14:57:45
Source