• The alias command instructs the shell to replace one string with another string while executing the commands.
  • Aliases are like custom shortcuts that represent a command (or set of commands) that can be executed with or without custom options.
  • In Linux, an alias is a user-defined shorthand or custom command that allows you to execute one or more commands with a simpler or shorter name.
  • In computing, alias is a command in various command-line interpreters (shells), which enables a replacement of a word by another string.
  • Create a temporary alias by using the alias command followed by the shortcut and the command you want it to replace.
  • Think of the ‘aliascommand in Linux as a shortcut – a way to create your own commands that can represent long or complex commands.
  • Use the alias command to create a temporary alias that lasts until the end of the current terminal session.
  • The alias command is unusual in that it only has a single option.
  • To list all aliases in your current shell session, simply run the alias command without any arguments
  • When running commands, the alias command asks the shell for replacing one word or string with another.