Linux-bash:ipconfig:command not found workaround

Source: Internet
Author: User

Problem: Ipconfig:command not found
[email protected] root]# ipconfig-bash:ipconfig:command not found
Method:1. After installing the CentOS5.5, Ipconfig cannot find the instructions to configure the ipconfig command to an environment variable.

2, the test results echo $PATH, sure enough/sbin this main directory is not the PATH.

[Email protected] network-scripts]# echo $PATH/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/ local/ #无/sbin command Path


3, run with Administrator privileges Vi/etc/profile Add the following statement at the end of the file:
   Path= $PATH:/sbin 
   export path= $PATH:/sbin
  use: wq! Save and exit.  

[Email protected] boot]# vim/etc/profile .... unset iunset pathmungePATH= $PATH:/sbinexport path= $PATH:/sbin"/etc/profile  "60L, 1071C  

[Email protected] Boot]#:wq


4, input command: source/etc/profile, let configuration information immediately effective  
    You can use this command when you re-enter Ifconfig.

Linux-bash:ipconfig:command not found workaround

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.