Copyright © 2022-2023 TubbyCat
See CREDIT and GPLV3 files for elaborated copyright information.
For use on your own system it may be best to modify the alias names to whatever you find optimal. Such a determination of preference requires some linux experience. No matter your expertise, these aliases are made with due regard for ease of use.
- A compilation of 'shortcuts' for commonly used linux commands residing inside .bashrc or .bash_aliases files
- The syntax:
alias aliasname='command'
e.g. alias turnoffmycomputer='sudo reboot now'
Note: files beginning with "." are initially hidden in linux file managers unless their visibility is enabled. Hint: Google "make dotfiles visible linux"
For combined bash aliases, simply copy over the .bash_aliases file in this git repository.
The "Snippets" directory contains aliases organized by category
- Simply copy and paste into your own ~/.bash_aliases file
- if only using a few aliases, you can insert them directly into ~/.bashrc
- Hint: "~" refers to the home directory. Typically /home/$USER. $USER is a placeholder for username, and can also be executed in the terminal on your linux machine.
For ~/.bash_aliases to work, add the following to your system's ~/.bashrc file, if it does not already exist.
if [ -f ~/.bash_aliases ]; then
.~/.bash_aliases
fi
Then, to implement the addition of .bash_aliases in-situ run:
source .bashrc
git clone https://github.com/TubbyCat/bash_aliases.git
cd ./bash_aliases
#for full aliases
cp ./.bash_aliases ~/
#for snippets
#cat ./snipets/whicheverdirectory/whicheverfilename >> ~/.bash_aliases
#to appropriately use snippets you will likely need to use a text editor