My ubuntu10.10 Setting the cross-compilation environment, the path setting is wrong, causing it to fail to start normally, and the error is as follows: {PATH: Command not found
[email protected]: ~$ ls
Command ' ls ' can be found at '/bin/ls '
The command could not be found because/bin is not in the PATH environment variable.
LS: Command not found}; All commands are invalid, after a try, solved, the solution is as follows:
Currently a normal user (because Ubuntu cannot log in directly with root), first switch to the root user, try to use the SU command, found that SU can not find, must use the absolute path, the command is as follows: [email protected]: ~$/bin/ After the SU switches to the root user, the following 2-line command is executed once, and PATH 1 is reset. Export path= "/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin" 2.SOURCE/ROOT/.BASHRC 3.echo $PATH * Repair Change/etc/environment file
Restore content to the original content
Path= "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" save; * restart should be OK;
Ubuntu PATH Error Fix