Linux:-bash: * * *: Command not found, the system many commands are not used, are prompted not to this command. All of a sudden, Linux has many commands that are not used, prompting for no such command. This should be caused by a problem with the system environment variable. Workaround:
First Use: Echo $PATH See if path contains:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin If not
Use temporary environment variables (disappear after reboot) #export path= $PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin Then you can use those commands to go in and modify the persistent environment variable:
1. Modify Profile: (All users) #vi/etc/profile Join: Export path= $PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin Save exit. 2. Modify the. bashrc file: (Individual users)
#vi/~/.BASHRC (available per user directory, Ls-all) Join: Export path= $PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin Save exit. Reboot the system and fix it. You can also use the command without restarting: #source. bashrc. You can make the environment variable that you just modified take effect.
|