记录下sudo: export: command not found的原因
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
今天设置环境变量,输入以下命令:
sudo export PATH="$PATH:路径“ (路径为arm-linux-gcc的bin目录)
结果提示:
sudo:export: command not found
在网上搜了一下,网友给出了答案。原理是export不能和sudo一起用。export修改的环境变量只能是在当前用户下有效。
所以改为以下指令可以执行成功,直接输出以下指令:
export PATH="$PATH:路径“




A beautiful web dashboard for Linux
最近提交(Master分支:18 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)