linux上的alias使用

linux下的alias使用

编辑~/.bash_profile文件

 

在最后加上你想alias的命令,比如

 

alias restart='sudo shutdown -r now'

 

再source一下即可