The alias cmd list your current aliases. For example:
Alias
Use alias to shorten a long cmd in current Shell session:
alias [name=['command']]
Use unalias to remove the alias, or use ' \ ' (back-slash) before command to DISA Ble alias.
Your ~/. BASHRC file might look like:
cp='cp? VI'ifrm='rm? I' ifmv='mv? I'if you're going to Overwrite something
system-wide Aliases can put in the /ETC/BASHRC
If you is already in a shell session and you want to apply the new BASHRC immediately :
SOURCE ~/.BASHRC
Examples:
1. Simplify pathing
Alias.. ='CD. ' alias ... ='CD. /.. /'alias .... ='CD. /.. /.. /'alias ... .. ='CD. /.. /.. /.. /'
2. Call multiple Cmds
Alias pl='pwd; LS'
3. Call other aliases
Alias p="pwd"alias L="ls-la"alias L= " p; L "
4. Creating, separate aliases simultaneously
Alias p="pwd"; L="ls-al"
5. Remove all aliases
Unalias-a
Linux CMD Tool Series 01-alias