kali .profile 不生效
.bash_profile 只在登陆的时候读取,在 X
下登陆打开一个 console 的话是不读取该文件的。如果在字符模式下登陆输入用户和密码的话是读取的。如果在 X 下打开一个 console 要读取配置,就要写在 .bashrc 里面,而不是 .bash_profile 里面.
你可以在 .bashrc 里面加入: if test -f .bash_profile; then . .bash_profile fi
这样.bash_profile里面内容变了就不需要再改.bashrc面的内容了. ba.
原创
2021-01-16 14:17:46 ·
934 阅读 ·
0 评论