Alias with no arguments and the-p option prints the list of aliases in the form alias Name=value on standard output. When arguments
was supplied, an alias was defined for each name whose the value is given. A trailing space in value causes the next word to being checked for
Alias substitution when the alias is expanded. For each name in the argument list for which no value is supplied, the name and value of
The alias is printed. Alias returns true unless a name is given for which no alias has been defined.
Note aliases is not expanded by default in Non-interactive shell, and it can is enabled by setting the expand_aliases she LL option using
Shopt.
Alias command
function:
Set the command alias to simplify the long command, and when using alias, the user must use single quotation marks to cause the original command to be used to prevent special characters from causing an error.
The alias command is stored in Bash's initialization file/ETC/BASHRC if it is to be permanently active.
Syntax:
alias (option) (parameter)
Options:
-P: Prints the directory alias parameters that have been set
:
Command alias = actual command
instance:
alias New command = ' original command-options/Parameters '
Alias L = ' Ls-lsh '
Remove Alias: Unalias alias
To view aliases for system settings: type Alias
This article is from the "Little Bunny" blog, make sure to keep this source http://10551983.blog.51cto.com/10541983/1679927
Linux command--alias