gzpk

linux用户环境变量

~/.bash_profile  用于设置用户专属的环境信息,login方式进去bash运行,每次用户登录的时候执行一次,通常会调用bash_profile

~/.bashrc 用于设置当前shell 的环境信息,no login方式进入bash运行,shell新起的时候执行

对于用户专属的环境变量只需在~/.bash_profile中设置

若添加后没重新登录,只需source ~/.bash_profile

posted on   gzpk  阅读(7208)  评论(0编辑  收藏  举报

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示