joe's joy&joke
coding and running
2015年8月4日 星期二
ubuntu linux 創建永久alias
因為linux裡有些指令可能很長,打起來很累,所以有可能會想設簡單點的別名
#vi .bashrc
esc + /alias
會找到如下
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
把要設的alias加入
alias dr8000='python manage.py runserver 0.0.0.0:8000'
這樣再logout和login 進 Linux 就可以以
dr8000來代替python manage.py runserver 0.0.0.0:8000了
參考
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)