In which situation would we change the HOME variable?
On a regular basis, there are no many occasions when we will find the need to change the value of
$HOME, by default it’s value will be the main directory of the user created in the computer, for example, if I had a user account under
ak then my home directory would be
/Users/ak/, but a wild situation in which we would want to change the value of the variable might be if we are completely personalizing our machine, and getting rid of users, then if it is just us, we would want to create an origin point
directory which we can then set as our home, another reason could be that by preference we would like to have a directory further in than our user one to be home, let’s say in my case I can say:
where main only contains the now home directory.