/etc/profile ,/etc/bashrc ,~/.bash_profile,~/ .bashrc 区别与联系
生活随笔
收集整理的這篇文章主要介紹了
/etc/profile ,/etc/bashrc ,~/.bash_profile,~/ .bashrc 区别与联系
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
/etc/profile 針對系統(tǒng)中的每個用戶,首次登錄時被一次執(zhí)行;
/etc/bashrc 每次運行bash shell的用戶都執(zhí)行此文件,當(dāng)bash被打開時,該文件被讀取;
~/.bash_profile 專用于本用戶的shell信息,僅被執(zhí)行一次;
~/.bashrc 本用戶的bash信息,登錄及每次打開shell時被讀取。
執(zhí)行順序
/etc/profile -> ~/bash_profile -> ~/bashrc -> /etc/bashrc
總結(jié)
以上是生活随笔為你收集整理的/etc/profile ,/etc/bashrc ,~/.bash_profile,~/ .bashrc 区别与联系的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 计算一年中第几周
- 下一篇: 基类的析构函数为什么要设置成virtua