Unix

Alias Command in Unix

Alias command is an alternative name used for long strings that are frequently used. It is mostly used for creating a simple name for a long command.Aliases are used to customize the shell session interface. Using alias, frequently-used commands can be invoked using a different, preferred term; and complex or commonly-used options can be used as the defaults for a given command.
The syntax for alias command is

The options are

Examples of alias command

  • If we type alias on the command prompt and then enter, it will list all the aliases that were created.  


  • Creates the alias "ls" such that using the ls command will always display color output.




Powered by Blogger.