[reed@localhost ~]$ cat .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:/sbin
export PATH
以上仅仅是举例ifconfig命令,当然在5版本下的设计确实是这样,大家可以举一反三,多学习一下5和6的版本。