When I write
cd ~
I get to the /var/www
directory.
I would like to get to my home directory at /home/pi
when I write cd ~
.
Some may argue that an alias would be the solution, but it seems like the RPi thinks that the /var/www
is the actual home directory, because it puts all the configuration files in there.
I have the Apache web server installed, its public directory is in the /var/www
directory.
How do I change the "tilde" directory to be /home/pi
instead of /var/www
?
echo $HOME
and/orcat /etc/passwd | grep $(whoami)
?whoami
I getpi
Wilf, when I type inecho $HOME
I get/var/www
. And when I type incat /etc/passwd | grep $(whoami)
I getpi:x:1000:1000:,,,:/var/www:/bin/bash
. By somehow I have made the/var/www
directory to my home directory. How can I change it back to/home/pi