For DevOps and System Engineers it is convenient to create aliases for frequent commands like updates or checks.
It is also fun to make your own alias commands.
How to create a alias command:
Now you can type
grepvia your terminal:search 'Host' Apache.conf
Some alias commands that will save your time:
alias update='yum update'alias show-da-updates='cd /usr/local/directadmin/custombuild/ && ./build update && ./build versionsalias da-updates='cd /usr/local/dirctadmin/custombuild/ && ./build update && ./build versions && ./build update_versions
Extra BASH documentation:
|If you have used UNIX for a while, you will know that there are many commands available and that some of them have very cryptic names and/or can be invoked with a truckload of options and arguments. So, it would be nice to have a feature allowing you to rename these commands or type something simple instead of a list of options. Bash provides such a feature : the alias .
Aliasses can be defined on the command line, in .bash_profile, or in .bashrc, using this form :