Alias allows you to define shortcuts and synonyms for commonly used shell commands.
The basic usage is:
alias newcommand='yourcommand -arguments'
If you want to start aterm according to your preferences with the command term, do something like:
alias term='aterm -ls -fg gray -bg black'
If you want a quick alias like ll for a more informative file listing:
ls -al --color=yes
Starting alias without any options lists the current aliases:
alias
alias ls='ll' alias ls -al --color=yes alias term='aterm -ls -fg gray -bg black'
Use unalias to remove an alias.
unalias term
You can also make aliases for existing commands. If you want ls to show colors by default, do:
alias ls='ls --color=yes'
These aliases can be put in your login script (.bash_profile or .profile depending on what shell you are using).
No comments:
Post a Comment