Difference between revisions of "Bash: alias"

From wikieduonline
Jump to navigation Jump to search
Line 22: Line 22:
 
* <code>[[source]]</code>
 
* <code>[[source]]</code>
 
* <code>[[aws list all]]</code>
 
* <code>[[aws list all]]</code>
 +
* [[suaws]]
  
 
== See also ==
 
== See also ==

Revision as of 08:31, 17 September 2021

alias does not accept parameters but a function can be called just like an alias


Examples

  • Execute alias to display your aliases
alias trim="awk ' {\$1=\$1} 1 '"

alias g="grep"
alias gi="grep -i"
alias gv="grep -v"
alias p8="ping 8.8.8.8"
alias viconfig="vi ~/.ssh/config"

Related terms

See also

Advertising: