'~/.bashrc' vs ' /etc/skel/.bashrc'. Why are there two '.bashrcs'? [duplicate]

Codito ergo sum 06/12/2018. 2 answers, 1.143 views

This question already has an answer here:

There are lots of questions about .bashrc. But I couldn't have found anything about this one: why are there two .bashrcs? ~/.bashrc and /etc/skel/.bashrc. When I compare them, I find no difference. The same thing serves right about .profile and .bash_logout.

2 Answers

Panther 06/12/2018.

Every file in /etc/skel gets copied to a (new) users $HOME directory when your create a new user. If they are the same you either have not made any changes to your file (most likely) or you copied your custom file to /etc/skel.


How do I set up new users with skel



Pilot6 06/12/2018.

/etc/skel/.bashrc is a default .bashrc for every user created in the system.

~/.bashrc is individual for each user.

Related questions

Hot questions


Popular Tags