linux 系統配置檔案

2021-08-10 07:33:15 字數 489 閱讀 5258

個人使用者以個人配置檔案為主,全域性配置檔案為預設、

全域性配置檔案:

/etc/profile

/etc/profile.d/*.sh

/etc/bashrc

個人配置檔案:

~/.bash_profile 

~/.bashrc

profile:

設定環境變數

執行命令或指令碼

bashrc:

設定本地變數

定義命令別名

登入式shell

正常終端登入配置檔案順序

/etc/profile -> /etc/profile.d/*.sh -> ~/.bash_profile -> ~/.bashrc -> /etc/bashrc

非登入式shell

su user、圖形命令視窗或自動執行的shell指令碼順序

~/.bashrc -> /etc/bashrc -> /etc/prfile.d/*sh

Linux作業系統配置檔案

檔案路徑資訊 etc inittab 檔案作用說明 第一系統啟動後,自動開啟那些軟體程式 系統執行級別 7個級別 centos6 0 系統關機級別 init 0 1 系統單使用者級別 用於破解root密碼 救援恢復系統資料 沒有網路服務 2 系統多使用者級別 沒有網路服務 3 系統多使用者級別 有網...

Windows API獲取系統配置檔案的配置引數

在windows平台下獲取系統配置檔案 如 system.ini 的配置引數。系統配置檔案system.ini的內容如下 system serviceip 10.128.11.99 60000 commutype sharememory 如下 包含標頭檔案 winbase.h include win...

Windows API獲取系統配置檔案的配置引數

在windows平台下獲取系統配置檔案 如 system.ini 的配置引數。系統配置檔案system.ini的內容如下 system serviceip 10.128.11.99 60000 commutype sharememory 如下 包含標頭檔案 winbase.h include win...