linux中环境变量的设置问题(BASH_PROFILE)
清各位看看我设置的环境变量有没有问题
主要是想把/usr/local/netflow/bin加到环境变量里
原BASH_PROFILE文件为:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
我改的为:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:$HOME/usr/local/netflow/bin
export PATH
就只是加了一部分
是不是对的阿?
修改完后重启还是不能直接用里面的命令