在Linux系统中,修改/etc/profile时,由于各种错误导致执行其他命令时无效,出现报错 command is not found 自救方法: 直接使用vi命令无法使用的情况下,你可以在vi前面加上命令的地址 /bin/vi /etc/profile 用命令重新这是PATH; export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin 最后重新执行 source /etc/profile