Home » Operating Systems » .bashrc file not found?

.bashrc file not found?

Sometimes when you install Ubuntu, the .bashrc file is missing. The problem comes when you want to start using aliases as described in this post. Here is how to fix it.

Make sure that your .bashrc file is missing.

cd ~
ls -al

Check to see if you have a .bashrc file. If you find it well and good. If you do not find the .bashrc file then copy the default file into your home directory:

sudo cp /etc/skel/.bashrc ~/

In the /etc/skel directory .bashrc is owned by root. Therefore after you copy it into your home directory you will have to assign the ownership of the file to yourself.

sudo chown user:group ~/.bashrc

Now you can create a .bash_aliases file in your home directory and start adding your aliases to the file as described in this post.

Get 20% OFF with IPVanish VPN:

♦   Hide your browsing and streaming activity: No logs and no tracking
♦   Access geo-restricted content from anywhere
♦   Encrypt and anonymize: Kodi, Plex, Downloads, Personal Info
♦   Windows, Mac, Linux, Android, iOS, Router, and more.
♦   Money back guarantee - Sign Up Now

About the author


Anand is a self-learned computer enthusiast, a part-time blogger, and a Food Scientist by career. He has been blogging since 2010 on Linux, Ubuntu, Home/Media/File Servers, Smart Home Automation, and related HOW-TOs on htpcbeginner.com and smarthomebeginner.com.