My home folder (~ and $HOME) points to /home/user , how do I change this directory?
I tried
HOME=/new/dir
But this only works until I start a new shell.
I also tried looking for definitions in /etc/environment, ~/.profile, and /etc/profile.d/ but I didn't find HOME defined anywhere.
I also looked here, but I'm not interested in moving it to a separate partition, I merely would like to change the directory it points to.