原文:修改/etc/profile文件出错,找不到命令

修改 etc profile文件出错,找不到命令 修改 etc profile下的环境变量,执行过source etc profile之后: root node mongodb ls bash: ls: 未找到命令 root node mongodb cat bash: cat: 未找到命令 找不到命令了 解决方法: root node mongodb export PATH usr bin: u ...

2020-04-14 01:11 0 1437 推荐指数:

查看详情

sudo source /etc/profile 提示找不到source命令

今天修改了/etc/profile,需要用source一下,于是写入命令 sudo source /etc/profile 提示找不到source命令 改成 sudo . /etc/profile 还是找不到命令 . 怒了,用su直接切换到root,再执行 source ...

Sat Mar 08 19:22:00 CST 2014 0 6218
修改/etc/profile文件

通常情况下,/etc/profile文件是只读的,直接用vi或gedit打开修改后是无法保存的。要修改profile,需要取得root权限,(使用gedit编辑)应该如下: $sudo gedit /etc/profile 或者 $sudo -s $gedit /etc/profile ...

Sun Jul 12 23:10:00 CST 2015 0 2909
linux修改/etc/profile出错command not found解决办法

linux修改/etc/profile出错导致所有命令都command not found的解决办法 执行命令 因为基本所有的shell命令都包含在上面几个目录中, 执行完后,就可以执行其他命令,赶紧把/etc/profile的错误改正过来~~~ 然后再 ...

Tue Aug 25 03:57:00 CST 2020 0 604
linux 下修改etc/profile文件

etc/profile文件是只读的,直接用vi或gedit打开修改后是无法保存的。要修改profile,需要取得root权限,(使用gedit编辑) 1. su root 输入密码 进入root模式 2. $sudo gedit /etc/profile 之后就可以保存 ...

Sat Apr 27 05:06:00 CST 2019 0 5412
linux修改vim /etc/profile 配置文件 修改不了

是因为没有下载vim。。。。。。。。。。下载vim就可以了。 语句是:yum install vim 有人说权限问题,我的不是权限问题,就是单纯的没有这个命令。 就这样了,改吧骚年们,下图是下载之后的效果。 ...

Tue Nov 05 05:27:00 CST 2019 1 3122
Ubuntu 如何进入系统文件/etc/profile修改内容

转载:https://blog.csdn.net/cfq1491/article/details/81088117 /etc/profile 默认权限为 -rw-r--r-- 即只有root用户可以修改,其它用户只能读取。 要修改/etc/profile,先要使用root登录系统,再使用 ...

Tue Mar 12 01:10:00 CST 2019 0 3437
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM