output
linux .bash_profile .bashrc 区别
input
鸟哥-鸟哥的Linux私房菜 基础学习篇 3ed|323
algo
cat .bash_profile
# .bash_profile
echo "bash_profile"
echo "in bash_profile"
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
.bash_profile 会引用 .bashrc
本文介绍了Linux环境下.bash_profile与.bashrc的区别及联系。详细解释了.bash_profile如何引用.bashrc,并展示了如何设置用户的特定环境变量和启动程序。
2万+

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



