Why ifconfig doesn't work in CentOS?

Hi,

I newly installed a CentOS, but when I tried to use ifconfig to find out the ip address of the machine.  the command doesn't work.  It seems like the ifconfig command is not there.  Please help.  Thanks.

Tom
pisceswzh2010Asked:
Who is Participating?
 
pisceswzh2010Author Commented:
I found the answer.  The reason is the ifconfig is not in the default user folder.  Instead it works by specifying the folder.

/sbin/ifconfig works fine.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.