Linux 给PATH变量添加新路径

bash shell:

 

vim ~/.bash_aliases

export PATH=/home/kali/.scripts:$PATH

:wq

保存退出

 

. ~/.bashrc

更新

参考:https://www.howtogeek.com/658904/how-to-add-a-directory-to-your-path-in-linux/

 

posted @ 2024-07-11 19:09  profesor  阅读(3)  评论(0编辑  收藏  举报