| 檔案 | 用途 | 引用時機 |
|---|---|---|
~/.bash_profile | Bash 登入 Shell 主設定 | 登入後,/etc/profile 之後 |
~/.bash_login | 備選登入設定 | .bash_profile 不存在時 |
~/.profile | Bourne 相容設定 | 前兩者都不存在時 |
~/.bashrc | 互動式非登入 Shell | 開啟終端機、執行腳本 |
~/.bash_logout | 登出時執行 | 登出時 |
~/.bash_history | 指令歷史紀錄 | 持久化儲存 |
~/.vimrc (Vim)、~/.exrc (Vi)~/.muttrc (Mutt)、~/.pinerc (Pine)、~/.mail.rc~/.gitconfig、~/.subversion/~/.ssh/config、~/.ssh/authorized_keys~/.xinitrc、~/.Xdefaults、~/.gtkrc、~/.kderc~/.netrc (FTP)、~/.ncftp/、~/.wgetrc~/.forward (郵件轉寄)、~/.rhosts (rsh/rlogin)、~/.signature (郵件簽名)/etc/| 檔案 | 功能 |
|---|---|
/etc/profile | 所有使用者登入 Shell 共用設定 |
/etc/bashrc | 系統級 Bash 互動式設定 |
/etc/inittab | init 程序啟動控制,執行等級定義 |
/etc/fstab | 檔案系統掛載表 |
/etc/passwd | 使用者帳號資訊 |
/etc/shadow | 加密密碼儲存 |
/etc/group | 群組定義 |
/etc/hosts | 主機名稱解析 |
/etc/resolv.conf | DNS 解析器設定 |
/etc/sysconfig/network | 網路基礎設定 (RedHat 系) |
/etc/ssh/sshd_config | SSH 服務端設定 |
/etc/sudoers | sudo 權限控制 |
/etc/crontab | 系統排程任務 |
/etc/logrotate.conf | 日誌輪轉設定 |
/etc/ld.so.conf | 動態連結器路徑 |
核心資料結構介面,僅存在記憶體中:
/proc/cpuinfo:CPU 資訊/proc/meminfo:記憶體使用狀況/proc/version:核心版本/proc/mounts:目前掛載點/proc/modules:已載入核心模組/proc/<PID>/:程序詳細資訊/etc/profile → 使用者 ~/.bash_profile → ~/.bashrc.bash_profile,別名與函數設定於 .bashrc.bash_profile 中 source ~/.bashrc 確保登入 Shell 也載入互動式設定source 或 . 立即生效,無需重新登入600熟悉設定檔架構,能讓您精準控制 Linux 環境行為,提升開發與運維效率。