在“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