In Linux, the "bash ifconfig command not found" command appears in ifconfig.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.