在「Bash初學者指南」中,它表示:ubuntu bash scripting:配置文件丟失?
Bash是GNU shell,與Bourne shell兼容並且包含許多其他shell的有用功能。當shell啓動時,它讀取它的配置文件。最重要的是:
/etc/profile
~/.bash_profile
~/.bashrc
然而,在我的Ubuntu 11.10,
- 有沒有 「〜/ .bash_profile中」:文件瀏覽器不顯示它和 「ls -l命令〜/ .bash_profile中」 說「沒有這樣的文件或目錄「
- 有」/ etc/profile「和」〜/ .bashrc「,但它們不顯示在文件資源管理器中,只有」ls -l/etc/profile「和」ls- l /.bashrc「顯示結果。
有沒有在我的安裝過程中缺少的東西?
原因'工作後,嘗試ls'不顯示'.bashrc',默認是不顯示點文件。試試'ls -a'。 – tripleee