配置用户自定义命令
1.全局环境变量 /etc/profile /etc/bashrc
#vim /etc/bashrc
alias py='/usr/bin/python'
生效自定义命令
#source /etc/bashrc
2.~/.bashrc为用户环境下的自定义配置文件
~/.bashprofile为用户环境下的自定义配置文件
配置用户自定义命令
1.全局环境变量 /etc/profile /etc/bashrc
#vim /etc/bashrc
alias py='/usr/bin/python'
生效自定义命令
#source /etc/bashrc
2.~/.bashrc为用户环境下的自定义配置文件
~/.bashprofile为用户环境下的自定义配置文件