Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the use of the alias command

Shulou Source: shulou.com Published: 2022-06-02 02:06:06 09月29日 Update

This article mainly introduces the use of the alias command, the article is very detailed, has a certain reference value, interested friends must read it!

The alias command is an alias for setting instructions. Users can use alias to customize the alias of the directive. The syntax of the command is "alias [alias] = [instruction name]". If no parameters are added, all current alias settings will be listed.

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

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

Grammar

Alias [alias] = [instruction name]

Parameter description: if no parameters are added, all current alias settings are listed.

Example

Set an alias for a command

# alias lx=ls# lxanaconda-ks.cfg Desktop install.log install.log.syslog qte above is all the content of what is the use of the alias command, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Aliases instructions commands parameters content names users grammars customizations values interests available in examples guys partners effectiveness more knowledge articles industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB OPPO Reno Redmi Shulou Information Huawei