原文: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