One day someone asked me to provide a quick way to get into a directory, or to keep him CD to a directory, he felt very uncomfortable.
Remember that I have also made many aliases, and then again configured again, but often forget the alias configuration file is located, and then record it again.
Feature 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=aut O ' Alias l= ' ls-cf ' Alias la= ' ls-a ' Alias ll= ' ls-alf ' Alias ls= ' ls--color=auto '
Description
1, the user can use alias, custom command aliases. If you enter alias only, you can list all of the current alias settings.
2. Alias's effectiveness only extends to the operation of the login. 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.
3, if you want to give each user an alias, please add alias la= ' Ls-al ' line to the last side of/ETC/BASHRC, BASHRC is the environment variable configuration file/ETC/BASHRC and ~/.BASHRC The difference is that one is set to a system-wide one that is set up for single-user use.
4. After configuring the file, you must exit the current session and log in again. If you do not exit the session Bash environment variable does not load the alias in the configuration file, similarly if your current session uses the alias command to add the alias directly, the alias you write to the configuration file will be flushed out.
Alias Boost Efficiency tool