当我打开终端时,我不断收到以下错误。我正在运行 Fedora 19。
bash:来源:找不到命令
当我尝试登录时,上述错误还导致我的屏幕变为空白。然后我通过 .bashrc 和 .bash_profile 文件重命名,系统运行良好。所以看起来问题可能出在这些文件之一上,但我不知道它是什么。
这是我的 bashrc 和 bash_profile 文件:
[gmahan@localhost ~]$ cat .bashrc
# .bashrc
[ -z "$PS1" ] && return
Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
[gmahan@localhost ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [-f ~/.bashrc]; then
. ~/.bashrc
fi
# User specific environment and startup programs
Run Code Online (Sandbox Code Playgroud)
谁能告诉我可能是什么问题。谢谢。
cho*_*oba 11
该错误是由以下行引起的:
Source global definitions
Run Code Online (Sandbox Code Playgroud)
这可能不是命令,而是注释。将 a 添加#
到该行,错误应该消失了。
# Source global definitions
Run Code Online (Sandbox Code Playgroud)