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
No comments:
Post a Comment