Bashrc File
Used to configure the bash terminal. You can define commands here.
TODO:
- Add how to modify bash command line headding.
Adding an Alias (shortcut)
Reference: upgrade-python-from-2-6-to-2-7-on-centos-6-5
- Open the
bashrc
file. The bashrc file is located in a user’s home directory (~
means home directory). The following command will open thebashrc
file found in the user’s home directory.vi ~/bashrc
TODO: Add example of how the bashrc file looks like.
- Add an
alias
for a certain command. Analias
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 defaultpython
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
- 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
- 2020.06.10 Created file
- Created
Adding an Alias (shortcut)
section
- Created