It must have been used a lot linux All of our partners have encountered the following situation :
Here's how to solve this problem :
[[email protected] ~]# rm -rf /home/elk/.bash*
[[email protected] ~]# su - elk
Last login: Wed Oct 14 01:13:00 CST 2020 on pts/0
# The display is abnormal
-bash-4.2$
-bash-4.2$ exit
logout
[[email protected] ~]# cp /etc/skel/.bash* /home/elk/
# Set up .bash* The owner of the document is elk
[[email protected] ~]# chown elk:elk /home/elk/.bash*
[[email protected] ~]# su - elk
Last login: Wed Oct 14 01:41:13 CST 2020 on pts/0
# Now the display is normal again
[[email protected] ~]$