What is the alias mechanism in UNIX?

The alias mechanism allows one to specify or assign another name to a command. Basically, it assigns an alias to the command. This comes in useful as one can assign an alias to a command that would otherwise be difficult to remember.

For example:

alias dir ‘ls -sFC’

This indicated to the system that the command “dir” can now be used instead of ‘ls -sFC’. Using “dir” will have the same effect as using ‘ls -sFC’

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.