如何摆脱这个:终端中的“[-f: command not found”?

Ant*_*ian 1 shell bash

当我启动终端时,此消息出现在命令行上方。如何摆脱它?使用哪个终端没有区别。它出现在 xfce4-terminal 或 xterm 中

[-f: command not found username@linux:~>

Dop*_*oti 5

在您的.profile, .bash_profile, 或.bashrc(et al) 中查找任何包含 的行[-f,并将其更改为[ -f