Solve the Linux command not found error

  

In many people learn Linux command line, you will often encounter command not found error, the above errors mainly have the following situations:

Command writing error, such as some People will make windows commands and linux commands wrong, such as viewing ip related information, linux command line should be configured for ifconfig

environment variables, there are generally two solutions here, first, you can switch to root user Execute the command, the second is to configure the user's environment variables, the instructions are as follows:

export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/Sbin:/usr/bin:/root/bin



Copyright © Windows knowledge All Rights Reserved