How to check ip address in linux

Just issue following command to check your ip address in linux


/sbin/ifconfig

ifconfig

ya, my ip address now is 10.0.0.6

17 comments on “How to check ip address in linux

  1. For Ubuntu, and possibly other Linux/Unix versions:

    % hostname -I (capital I as in Idaho)
    192.168.1.20

    If you have multiple interfaces active, you may get multiple ip addresses back.

    Reply
  2. Is it possible to get IP only ?
    Because that would be very useful in automated scripts..

    Reply
  3. Greetings! Very useful advice in this particular
    article! It is the little changes that will make the biggest changes.
    Many thanks for sharing!

    Reply
  4. There’s also a neat little utility that allows tracking the IP addresses of the machine it’s installed on. You can get the IP addresses via Email or have them written to a MySQL database. Here’s the link

    Reply
  5. Thanks you site is really helpful, I am just starting with linux and it gives simple answers to many of my questions

    Reply
  6. your website is very helpful for my study in Linux. Thank you very much.

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *