You are hereBlogs / Carl's blog / Linux Foolery: ifconfig: command not found

Linux Foolery: ifconfig: command not found


By Carl - Posted on 14 January 2011

Printer-friendly versionPDF version

This one gets me every time, so I'm writing it here so I don't have to look it up again: I'm in a linux terminal and I need to find the IP. I try to do the command most equivalent to Windows' ipconfig; ifconfig. This is what I get:

-bash: ifconfig: command not found

Command not found??? This has to be one of the most basic commands!!!!!!!!1111111  It turns out that if you are not a root user, you need to preface the command with /sbin/.  So . . . 

The Solution:

type 

/sbin/ifconfig

Hope that helps at least one stuck linux user other than myself. Maybe I need to get myself a copy of Linux For Dummies, 9th Edition

Share/Save
Tags

Thanks, this really helped me

Fuelly

Powered by Drupal, an open source content management system

My Top Cafepress Designs

Recent blog posts