In my Ubuntu terminal, somehow my terminal system name has been mounted to the root directory. Anyway, my terminal is displaying this:
admin.Ubuntu:/$
Instead of
admin.Ubuntu:~$
Now i cannot even see my home files and directories. How can i fix this?
You can verify what is defined setting for your shell prompt. What is the output of following command?
pwd
echo $PS1
echo $PS2
echo $PS3
Then cross check that the path between current path and your shell prompt.
EDIT
Based on the updated question, it seems pwd
is at root folder /
, and $PS1
is set to ${debian_chroot:+($debian_chroot)}\\u@\\h:\\w\\$
pwd
, explains why your prompt is different. PS1
do? https://askubuntu.com/questions/372849/what-does-debian-chrootdebian-chroot-do-in-my-terminal-prompt/372862#372862 You may also want to check if your ~/.bash_profile
, ~/.profile
, ~/.bashrc
are correct. To do so read for the order in which these files are read by bash
( see man bash
for FILES
section ).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.