[[email protected] keepalived]# echo $PATH /application/mysql/bin:/application/mysql/bin:/application/mysql/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
如上,路径重复,只需输入下面脚本即可
export PATH=$(echo $PATH | tr : "\n"| sort | uniq | tr "\n" :)
[[email protected] profile.d]# echo $PATH /application/mysql/bin:/bin:/root/bin:/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:
时间: 2024-12-26 17:27:04