As an example lets make ls
an alias for ls -lah
Make sure the alias isn't already taken (if that is a problem for your use-case)
type ls
# this returns the use of the command, if its in use
We don't care in this case and actually want to shadow the existing ls
command.
Use the alias command
alias ls='ls -lah'
That's it, now you can use the new command you have created
ls
Comments
comments powered by Disqus