In Ubuntu 14.04 each time I reboot, the bashrc
file is missing in the ~/.
location.
What happened? Please give me some suggestions! Thanks!
Update:
Add new ~/.bashrc
, then ls -l ~/.bashrc
get the output -r--r--r-- 1
.
So chmod 644 ~/.bashrc
get output -rw-r--r-- 1
.Then every reboot, solved the problem that missing file. But I still need to source the file like: . ~/.bashrc
to get every thing works.
chmod 444 ~/.bashrc
and re-login, just to see if this works. note: to restore the original (rw-r--r--
) permissions use:chmod 644 ~/.bashrc
source ~/.bashrc
to get every thing work.