Easy Tutorial
❮ Linux Comm Mread Linux Comm Logout ❯

Linux alias Command

Linux Command Manual

The Linux alias command is used to set aliases for commands.

Users can utilize alias to define custom aliases for commands. If you simply enter alias, it will list all current alias settings. The effect of alias only applies to that particular login session. If you want the alias to be set automatically upon each login, you can set the alias in .profile or .cshrc.

Syntax

alias[alias_name]=[command_name]

Parameter Description: If no parameters are added, it lists all current alias settings.

Example

Setting an alias for a command

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

Linux Command Manual

❮ Linux Comm Mread Linux Comm Logout ❯