Ubuntu 18.04 - Where is .bashrc?
Isn't it supposed to be recreated automatically?
No. A default .bashrc
file is copied from /etc/skel
when a user account is first created by adduser
- if you retained your previous user account(s) then there would be no reason for it to be re-created.
You can copy it manually from /etc/skel
yourself.
See man adduser
.
Related videos on Youtube
sziraqui
whoami : a_TechFreak ls skills : ["android apps","android ROMs","bash", "python","java","c","nodejs","html","unity3D","blender","photoshop",after effects","illustrator","corelDraw", ....] uname -i : linux+windows_x86_x64
Updated on September 18, 2022Comments
-
sziraqui over 1 year
I checked by
ls -al
in my home directory but I don't see .bashrc file in my home directory. Ubuntu 18.04 release notes does not mention anything about this. I installed it without formatting previous /home partition after deleting files like .bash_, .local, .gnome, etc. I am able to use the pc like normal but where is the bashrc file now? Isn't it supposed to be recreated automatically?-
N0rbert about 6 yearsOn my clean install of Ubuntu 18.04 LTS
~/.bashrc
is in place. On both Ubuntu Desktop (GNOME) and MATE. You did something wrong. -
sziraqui about 6 yearsI think I have mentioned it is not a clean install on purpose. Please ask for clarification before downvoting
-
-
sziraqui about 6 yearsOh! I created a new user with exact same username as previous install to preserve all data.
-
steeldriver about 6 years@sziraqui but you re-used the home directory, yes?
-
sziraqui about 6 yearsYes. I purposely created separate root and home partitions when I first installed 17.10 a year ago as I planned to switch to 18.04 LTS. I keep all my development tools (around 64 gb right now) in home partition to prevent re-setup on critical upgrades. I expected GUI will run adduser while installation (it did) but providing identical username seems to have caused problem.