/home/atguigu 要不然就是sudo ./xsync /etc/profile.d/my_env.sh 要是不行的话 sudo vim /etc/sudoers 在文件中添加家目录
最后实在不行的话 把脚本文件放到/usr/bin下面