打开终端
vim .bash_profile
在空白处添加一行 注意等号两边均没有空格 例如:
alias qc='ssh root@qingfengpiao.cn'
qc 为别名,等号右边为指代的命令
保存好之后
source .bash_profile
就可以快捷的使用了.
打开终端
vim .bash_profile
在空白处添加一行 注意等号两边均没有空格 例如:
alias qc='ssh root@qingfengpiao.cn'
qc 为别名,等号右边为指代的命令
保存好之后
source .bash_profile
就可以快捷的使用了.
1048
1766
1720
806

被折叠的 条评论
为什么被折叠?