Edit the ~/.bash_aliases or ~/.bashrc (recommended) file using a text editor: vi ~/.bash_aliases. # or # ...
Append your bash alias.
For example append: alias update='sudo yum update'
Save and close the file.
Activate alias by typing the following source command: source ~/.bash_aliases.