原文:etc/profile和/etc/environment的比較

轉自:http: andy .iteye.com blog 先將export LANG zh CN加入 etc profile ,退出系統重新登錄,登錄提示顯示英文。將 etc profile 中的export LANG zh CN刪除,將LNAG zh CN加入 etc environment,退出系統重新登錄,登錄提示顯示中文。用戶環境建立的過程中總是先執行 etc profile然后在讀取 ...

2015-08-30 18:37 1 4764 推薦指數:

查看詳情

~/.profile和/etc/profile的區別

登入系統讀取步驟: 當登入系統時候獲得一個shell進程時,其讀取環境設定檔有三步 : 1.首先讀入的是全局環境變量設定檔/etc/profile,然后根據其內容讀取額外的設定的文檔,如 /etc/profile.d和/etc/inputrc 2.然后根據不同使用者帳號 ...

Fri Jul 17 18:37:00 CST 2020 0 557
/etc/profile Permission Denied

普通用戶登錄問題: root用戶登錄OK,但普通用戶登錄時提示: -bash:/etc/profile Permission Denied 解決辦法: 在root的用戶下查看etc目錄權限,為744;這個權限是有問題的,其他用戶沒有列出etc目錄下文件的權限,所以其他用戶登錄會報 ...

Fri Jan 15 00:34:00 CST 2021 0 651
修改/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
~/.bashrc與/etc/profile的區別

~/.bashrc:該文件包含專用於某個用戶的bash shell的bash信息,當該用戶登錄時以及每次打開新的shell時,該文件被讀取. /etc/profile中設定的變量(全局)的可以作用於任何用戶,而~/.bashrc等中設定的變量(局部)只能繼承/etc/profile中的變量 ...

Sun Apr 07 22:49:00 CST 2019 0 928
Redhat Linux /etc/profile 與 /etc/bashrc 的區別

最近學習RHCE,在umask這里,書里說要修改/etc/profile和/etc/bashrc兩個文件,卻沒有說明這兩個區別。於是在上網查看之后倒是明白了各是怎么用的。/etc/profile是對應登錄的,/etc/bashrc是對應打開shell的。但是實際使用區別在哪,如果說bashrc ...

Wed Oct 08 22:34:00 CST 2014 0 2133
profile(/etc/profile)和bash_profile的區別

profile(/etc/profile)和bash_profile的區別 profile(/etc/profile),用於設置系統級的環境變量和啟動程序,在這個文件下配置會對所有用戶生效。當用戶登錄(login)時,文件會被執行,並從/etc/profile.d目錄的配置文件中查找shell ...

Wed Jun 10 22:47:00 CST 2020 0 614
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM