原文:linux 修改etc/profile 后重启 基础命令找不到

linux 修改etc profile 后重启 命令找不到 执行命令 export PATH usr bin: usr sbin: bin: sbin: usr X R bin 这就可以切换root命令 进行操作profile ...

2020-06-07 20:27 0 739 推荐指数:

查看详情

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

修改/etc/profile文件出错,找不到命令 修改/etc/profile下的环境变量,执行过source /etc/profile之后: [root@node8 mongodb]# ls-bash: ls: 未找到命令[root@node8 mongodb]# cat-bash: cat ...

Tue Apr 14 09:11:00 CST 2020 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
mac 配置/etc/profile重启不生效

在今年苹果公司发布了macOS Catalina(10.15),macOS的默认终端从bash变成了zsh 。 解决: vim ~/.zshrc 在 ~/.zshrc 文件最后,增加一 ...

Wed Nov 11 22:31:00 CST 2020 0 788
linux修改/etc/profile权限

修改/etc/profile时提示为只读文件,不允许修改, 敲#chmod 777 /etc/profile仍不允许修改 解决办法: 在root权限下敲 #:mount -o remount,rw / ...

Sat Aug 31 01:05:00 CST 2019 0 1457
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修改/etc/profile不生效的问题

今天在原来的机器上修改了JDK的路径配置,但死活不生效。 后来查了~/.bash_profile文件,里面没有配置。 最后查~/.bashrc文件,发现里面有JDK的配置 ...

Tue Aug 11 01:16:00 CST 2015 0 2099
Centos7 修改/etc/profile错误导致所有命令“not found”

因为Centos7中运行着两个版本的php,今天在设置环境变量时导致所有命令都 "not found"。 修复方式: 第一:执行 /bin/vi /etc/profile 把文件修改回来; 第二:wq 保存退出; 三: 执行 export PATH=/usr/bin:/usr ...

Wed Oct 09 23:30:00 CST 2019 0 484
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM