What is the alias command?

藏色散人
藏色散人Original
2020-09-30 11:51:4715565browse

The alias command is used to set the alias of the command. Users can use alias to customize the alias of the command. The syntax of the command is "alias [alias] = [command name]". If no parameters are added, , all current alias settings will be listed.

What is the alias command?

Recommended: "linux tutorial"

The Linux alias command is used to set the alias of the command.

Users can use alias to customize the alias of the command. If you only enter alias, all current alias settings will be listed. The validity of alias is only limited to the login operation. If you want to automatically set the alias every time you log in, you can set the alias of the command in .profile or .cshrc.

Syntax

alias[别名]=[指令名称]

Parameter description: If no parameters are added, all current alias settings will be listed.

Example

Set an alias for the command

# alias lx=ls
# lx
anaconda-ks.cfg Desktop install.log install.log.syslog qte

The above is the detailed content of What is the alias command?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn