What is the alias command?

藏色散人
Release: 2020-09-30 11:51:47
Original
15566 people have browsed it

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[别名]=[指令名称]
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template