国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

linux bash配置文件加載順序(圖解)

2024-06-28 16:03:49
字體:
來源:轉載
供稿:網友

If you have ever put something in a file like .bashrc and had it not work, or are confused by why there are so many different files — .bashrc, .bash_PRofile, .bash_login, .profile etc. — and what they do, this is for you.

The issue is that Bash sources from a different file based on what kind of shell it thinks it is in. For an “interactive non-login shell”, it reads .bashrc, but for an “interactive login shell” it reads from the first of .bash_profile, .bash_login and .profile (only). There is no sane reason why this should be so; it’s just historical. Follows in more detail.

For Bash, they work as follows. Read down the appropriate column. Executes A, then B, then C, etc. The B1, B2, B3 means it executes only the first of those files found.

這里寫圖片描述


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 新乐市| 长宁县| 邛崃市| 宁陕县| 马鞍山市| 镇原县| 佛冈县| 武义县| 龙井市| 郧西县| 红河县| 侯马市| 辉县市| 长治市| 吴忠市| 郎溪县| 天门市| 贵州省| 家居| 洛川县| 衡水市| 鄂托克前旗| 巴塘县| 宽城| 五峰| 石门县| 图木舒克市| 都江堰市| 兴宁市| 利津县| 紫金县| 深州市| 临江市| 色达县| 安岳县| 文昌市| 星子县| 海淀区| 新巴尔虎左旗| 荔浦县| 大英县|