15
4
I was messing around with environment variables on my Mac, trying to learn how to use them and I used the command nano ~/.bash_profile
where I then added the line HOME=/Users/MyCompName/Desktop
to update my home variable.
This change worked and can be seen when I use printenv
to view all environment variables but when I went to change HOME
back I couldn't seem to find ~/.bash_profile
anymore. Where did it go?
9Basically
~
means$HOME
– el.pescado – 2018-10-08T07:08:08.8176...so if you redefine
$HOME
,~
gets redefined too – el.pescado – 2018-10-08T10:49:27.017