Every time I change to root in the terminal, the directory is changed to /root instead of continuing with the current one. See below:
root@MaylaVettel-PC2:/home/mayla99654/Área de Trabalho/xdm-setup-7.2.11#
ls
install.sh readme.txt
root@MaylaVettel-PC2:/home/mayla99654/Área de Trabalho/xdm-setup-7.2.11#
cd
root@MaylaVettel-PC2:~#
ls
snap
root@MaylaVettel-PC2:~#
pwd
/root
root@MaylaVettel-PC2:~#
As you can see, every time I go to root (inside a directory), it takes me out of the current directory and sends me to /root. When I'm in root, and I give the command cd
, it takes me to ~
(which is not my /home) and when typing ls
, it shows me the files/folders of /root directory. Confused. But it is as if the default directory is set to /root.
Can anyone give me a help for this problem?