Search

Showing posts with label alias. Show all posts
Showing posts with label alias. Show all posts

Unix alias

The alias command can be useful if you want to create a 'shortcut' to a command.
The format is alias name='command'


Example:
alias list='ls -la'

To make alias permanent put it in file ~/.bashrc (the file may not exist).
Restart bash with
source ~/.bashrc