nano ~/.bash_profile
add you alias like following
then run source ~/.bash_profile in terminal.
2.
nano /etc/profile (for a normal user)
nano ~/.profile (for a root/su do)
alias aliasname='mycommand /path/path'
(notice no space between equal sign and ')
. /etc/profile
...or for root/superuser do:
. ~/.profile
No comments:
Post a Comment