原因:修改了 /etc/profile 文件,然后输入ls时报错 -bash: ls: command not found 只需在命令行执行 export PATH=/bin:/usr/bin:$PATH