# Why do I have to cd into /sbin to get to ifconfig?

**URL:** <https://community.unix.com/t/why-do-i-have-to-cd-into-sbin-to-get-to-ifconfig/145289>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [January 20, 2003, 5:45pm UTC](https://community.unix.com/t/why-do-i-have-to-cd-into-sbin-to-get-to-ifconfig/145289 "2003-01-20T17:45:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jody](https://community.unix.com/letter_avatar/jody/32/5_5575768a8748004e209b776fc1b2916d.png) [@Jody](https://community.unix.com/u/Jody)\
**Post date:** [January 20, 2003, 5:45pm UTC](https://community.unix.com/t/why-do-i-have-to-cd-into-sbin-to-get-to-ifconfig/145289/1 "2003-01-20T17:45:22Z")

</div>

I have to cd into /sbin in order to use ifconfig to check out my network cards. This has only started to happen since I downloaded the last update from RedHat(The machine runs RedHat 8.0).

Does anyone know what happened?

More importantly, are there any sources that can help me with this issue?

---

<div class="post-metadata">

**Author:** ![norsk\_hedensk](https://community.unix.com/letter_avatar/norsk_hedensk/32/5_5575768a8748004e209b776fc1b2916d.png) [@norsk\_hedensk](https://community.unix.com/u/norsk_hedensk)\
**Post date:** [January 20, 2003, 7:17pm UTC](https://community.unix.com/t/why-do-i-have-to-cd-into-sbin-to-get-to-ifconfig/145289/2 "2003-01-20T19:17:00Z")

</div>

usually, only root has /sbin in their PATH. so you can copy the file to /bin, however i would like to preserve the layout of the filesystem, so i would suggest just put /sbin in your PATH. oh yeah, this has probably changed with the update because RedHat decided to change the location, so nothing is wrong with your system.

---

<div class="post-metadata">

**Author:** ![Neo](https://community.unix.com/user_avatar/community.unix.com/neo/32/22838_2.png) [@Neo](https://community.unix.com/u/Neo)\
**Post date:** [January 20, 2003, 8:47pm UTC](https://community.unix.com/t/why-do-i-have-to-cd-into-sbin-to-get-to-ifconfig/145289/3 "2003-01-20T20:47:45Z")

</div>

My suggestion is to put /sbin in your path.....

---

<div class="post-metadata">

**Author:** ![Jody](https://community.unix.com/letter_avatar/jody/32/5_5575768a8748004e209b776fc1b2916d.png) [@Jody](https://community.unix.com/u/Jody)\
**Post date:** [January 21, 2003, 10:50am UTC](https://community.unix.com/t/why-do-i-have-to-cd-into-sbin-to-get-to-ifconfig/145289/4 "2003-01-21T10:50:07Z")

</div>

That was it. Thanks for the help!!
