# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
#maven环境变量
export MAVEN_HOME=/usr/local/maven
export PATH=$MAVEN_HOME/bin:$PATH
1、官网下载https://maven.apache.org/download.cgi2、解压缩包 tar zxvf apache-maven-3.8.2-bin.tar.gz 3、更改名称并移动到/usr/local目录下mv apache-maven-3.8.2 maven mv maven/ /usr/local/4、配置环境变量vim ~/ .bashrc# .bashrc# User specific aliases and functions.