1

I have previously installed Ubuntu /home in HDD, but in new installation there is a new home directory. How to change it to the previous /home directory. in HDD? Could I replace new home with my old home, or do I need to reinstall Ubuntu 22.04?

Previously installed /home directory:

previously installed /home directory

Newly installed /home directory:

newly installed /home directory

karel
  • 122,292
  • 133
  • 301
  • 332
hiimwillow
  • 11
  • 2

1 Answers1

-1

A user's HOME directory is specified in /etc/passwd and can be changed there.

Read man 5 passwd;man sudoedit

Once you've changed it, logoff and login to make ot take effect.

waltinator
  • 37,856