Bash: alias
(Redirected from Shell alias)
Jump to navigation
Jump to search
alias does not accept parameters but a function can be called just like an alias, according to official documentation "for almost every purpose, shell functions are preferred over aliases" [1]
Examples[edit]
- Execute
aliasto display your aliases
touch ~/.bash_aliases
Related terms[edit]
- Shell functions
ifconfigand IP alias address.bashrc and .bash profilesourceaws list allsuawsfunction.zprofileviprofile- Append a space
bash: compdef: command not foundshopt -s expand_aliasesexport -fsed s/'^'/'\<code\>'/ | sed s/'$'/'\<\/code\>'/
See also[edit]
alias, Bash: alias:viconfig, bip, .bash_aliases, ssha functionBash [ -c ],alias,&&, Bash history, Autocompletion,set,unset,export,.bash_aliases, .bashrc and .bash profile,PS1,echo,brace expansion, Function,shopt,trap,set -e,source,PATH,complete,disown,.hushlogin,.bashrc,builtin,eval,set,$PATH,$HOME,TZ,.profile,-e, -i,Builtin (Bash),mapfile,~, return (Bash), for, until,declare, dirname, basename, functions.sh, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@, Bash versions, Backslash \
Advertising: