Bashrc File

Used to configure the bash terminal. You can define commands here.

TODO:

Adding an Alias (shortcut)

Reference: upgrade-python-from-2-6-to-2-7-on-centos-6-5

  1. Open the bashrc file. The bashrc file is located in a user’s home directory (~ means home directory). The following command will open the bashrc file found in the user’s home directory.
    vi ~/bashrc
    

TODO: Add example of how the bashrc file looks like.

  1. Add an alias for a certain command. An alias is a word that stands for something. Here i defin python to point to a specific version of python. Instead of $ python pointing to a default python that is installed. I am makign the command $ python call the python2.7 executable.
    alias python=/usr/local/bin/python2.7
    alias pip=/usr/local/bin/python2.7/site-packages/pip
    
  2. Load bashrc again. (Note alias that were defined previously that you deleted will still apear since they were not cleared. This commadn will only redefine already made aliasas or create new aliadsd that are new.)
    source ~/.bashrc
    

Journal