Analyze. Act. Achieve.
Kurinchilion KURINCHILION Analyze. Act. Achieve.

Articles

Linux: alias, unalias

Alias command comes handy when we are in need to make long and frequently used command string short.

To list the current set of aliases simply type $ alias

To display the set alias for a specified alias name, type $ alias alias-shortstring Example: $ alias ls

To set an alias you use the format $ alias shortstring = "linux command string"

For example, $ alias ls="ls -1"

After setting alias for "ls" if we want to get the default "ls" command operation then use $ \ls

To unset the alias command, use $ unalias ls

To unset all aliases that are set $ unalias *