参考来源:
https://www.cnblogs.com/mfrbuaa/p/5145819.html
欢迎讨论交流,侵权请联系本人!
~/.bash_aliases
文件并打开,或者直接打开/.bashrc
文件。按照以下格式添加个人命令,每一个个人命令的定义占据一行:
alias your_cmd_name='your bash command'
alias another_cmd_name='another bash command'
重启(如果使用服务器则退出并重连),或者使用source
命令载入文件使操作立即生效:
source ~/.bash_aliases
# source ~/.bashrc
原文:https://www.cnblogs.com/icemaster/p/10480436.html