Home » Home Server » .bashrc file not found?

.bashrc file not found?

written by Anand November 8, 2011

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.

IPVanish VPN Exclusive Offer - only $3.25/month:
VPN Guides
Windows, Android, Ubuntu
Kodi OpenVPN
OSMC on RPi
♦ Hide your browsing (no logs), Anonymize Streaming and Downloads
♦ Circumvent Geo/Country Restrictions and access worldwide content
♦ Works on Windows, Mac, Linux, Android, iOS, Router, and more
♦ Money back guarantee - Sign Up Now

Related Articles