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
bashrcfile. The bashrc file is located in a user’s home directory (~means home directory). The following command will open thebashrcfile found in the user’s home directory.vi ~/bashrc
TODO: Add example of how the bashrc file looks like.
- Add an
aliasfor a certain command. Analiasis a word that stands for something. Here i defin python to point to a specific version of python. Instead of$ pythonpointing to a defaultpythonthat is installed. I am makign the command$ pythoncall 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