原文:linux 下修改etc/profile文件

etc profile文件是只讀的,直接用vi或gedit打開修改后是無法保存的。要修改profile,需要取得root權限, 使用gedit編輯 . su root 輸入密碼 進入root模式 . sudo gedit etc profile 之后就可以保存了 . source etc profile 使配置文件生效 ...

2019-04-26 21:06 0 5412 推薦指數:

查看詳情

修改/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修改vim /etc/profile 配置文件 修改不了

是因為沒有下載vim。。。。。。。。。。下載vim就可以了。 語句是:yum install vim 有人說權限問題,我的不是權限問題,就是單純的沒有這個命令。 就這樣了,改吧騷年們 ...

Tue Nov 05 05:27:00 CST 2019 1 3122
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/bashrc、~/.bash_profile、~/.bashrc 文件的區別

/etc/profile:此文件為系統的每個用戶設置環境信息,當用戶第一次登錄時,該文件被執行. 並從/etc/profile.d目錄的配置文件中搜集shell的設置. /etc/bashrc:為每一個運行bash shell的用戶執行此文件.當bash shell被打開時,該文件被讀取 ...

Sat May 04 01:29:00 CST 2019 0 586
Linux /etc/profile文件詳解

Linux /etc/profile文件詳解 轉載地址:http://linux.chinaitlab.com/administer/820910.html linux /etc/profile文件的改變會涉及到系統的環境,也就是有關Linux ...

Tue Nov 13 23:54:00 CST 2018 0 30880
Linux /etc/profile文件詳解

linux /etc/profile文件的改變會涉及到系統的環境,也就是有關Linux環境變量的東西,學習Linux要了解Linux profile文件的相關原理,這里對則以文件進行具體分析。這里修改會對所有用戶起作用。   1、Linux是一個多用戶的操作系統。每個用戶登錄系統后,都會有一個 ...

Fri Mar 20 06:22:00 CST 2020 0 790
Linux /etc/profile文件詳解

linux /etc/profile文件的改變會涉及到系統的環境,也就是有關Linux環境變量的東西,學習Linux要了解Linux profile文件的相關原理,這里對則以文件進行具體分析。這里修改會對所有用戶起作用。   1、Linux是一個多用戶的操作系統。每個用戶登錄系統后,都會有一個 ...

Fri Jul 31 23:10:00 CST 2020 0 1013
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM