function Description:sets the alias of the directive.
Syntax: alias[alias]=[directive name]
parameters: If no parameters are added, all current alias settings are listed.
for example: [email protected]:~$ alias
alias egrep= ' egrep--color=auto '
alias fgrep= ' Fgrep--color=auto '
alias grep= ' grep--color=auto '
alias l= ' ls-cf '
alias la= ' ls-a '
alias ll= ' ls-alf '
alias ls= ' ls--color=auto '
Stating : User can use alias, custom command aliases. If you enter alias only, you can list all of the current alias settings. Alias is only valid for the login operation. To automatically set an alias every time you log in, you can set an alias for the directive in/etc/profile or your own ~/.BASHRC.
Also, if you want to give each user an alias, please add alias la= ' ls -al ' line to the last side of the/ETC/BASHRC, BASHRC is the configuration file of the environment variable/ETC/BASHRC and ~/.BASHRC The difference is that one is set to a system-wide one that is set up for single-user use.
alias can be used to turn a long command into any of our favorite short
if you want to make it permanent, write it into/ETC/BASHRC.
Linux under alias command