cat ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=/usr/bin/pig-0.9.2/bin:$PATH:$HOME/bin
export PATH
把首先要用的写在前面
本文介绍了一个.bash_profile文件的配置示例,展示了如何通过编辑此文件来设置用户的特定环境变量和启动程序,如将pig-0.9.2的bin目录加入到PATH环境变量中。
cat ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=/usr/bin/pig-0.9.2/bin:$PATH:$HOME/bin
export PATH
把首先要用的写在前面

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