bash: /etc/profile: 权限不够

添加环境变量的时候显示没有权限
echo “export PATH=”/usr/local/ARM-toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/:$PATH"" >> /etc/profile

bash: /etc/profile: 权限不够
在这里插入图片描述
sudo chmod 777 /etc/profile

echo “export PATH=”/usr/local/ARM-toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/:$PATH"" >> /etc/profile

source /etc/profile

猜你喜欢

转载自blog.csdn.net/qq_41483419/article/details/131923527