Creating a command alias allows you to simplify your command-line experience.
I like to use ping with a few different switches -
ping -A -i .5 192.168.1.1
Instead of typing that out every time I want to use that config, I'll create an alias.
1. Create a new, hidden, file called .zshrc
(or whatever you want) in your home directory.
vim ~/.zshrc
2. Create a new alias following this format.
alias pong='ping -A -i .5'
3. Save and close the new file.
4. To apply your changes, run the source
command to read in and execute the aliases in the file.
source ~/.zshrc
That's it. Run your alias.