It seems strange to use centos for the first time. It is not as good as the windows operating interface. I cannot find many things and I don't know how to find them. My computer is in the English version of centos 5.4:
During user use, I want to check my network configuration and find that I cannot enter the "ifconfig" command. If an error occurs, I will start to look for relevant information, an error occurred in my network configuration, as shown below:
[Wang @ protronic ~] $ Ifconfig
Base: ifconfig: Command not found
My modifications are as follows:
[Wang @ protronic ~ ] $ Su
Passwod:
[Root @ protronic Wang] #/etc/profile
Comment out the following if statement:
# Path manipulation
If ["EUID" = "0"]; then
Pathmunge/sbin
Pathmunge/usr/sbin
Pathmunge/usr/local/sbin
Fi
To:
# Path manipulation
# If ["EUID" = "0"]; then
Pathmunge/sbin
Pathmunge/usr/sbin
Pathmunge/usr/local/sbin
# Fi
Save.
Now I understand that under/etc/profile, all the system configuration files are saved in/etc.
Of course, you can also directly use/sbin/ifconfig.