1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Ip address

Discussion in 'Linux and Unix' started by BTex, Feb 7, 2003.

Thread Status:
Not open for further replies.
Advertisement
  1. BTex

    BTex Thread Starter

    Joined:
    May 10, 2002
    Messages:
    564
    What is the command to get an ip addy from linux???
     
  2. lynch

    lynch

    Joined:
    Aug 3, 2002
    Messages:
    1,961
    Need to be logged in as root.Then type:
    ifconfig
    HTH
    lynch
     
  3. codejockey

    codejockey

    Joined:
    Feb 11, 2002
    Messages:
    1,405
    A small addendum:

    Lynch is correct -- the ifconfig command will tell you your (current, local) IP address. However, you do not need to be logged in as root in order to execute this command (and there are good reasons for not being logged in as root) -- you need only to have its location in your PATH, or invoke it directly using a full pathname. For example, as a normal user, I type /sbin/ifconfig at the command line, and the command executes properly.

    Hope this helps a little (:cool:).
     
  4. lynch

    lynch

    Joined:
    Aug 3, 2002
    Messages:
    1,961
    Thanks,as always,CJ.
    That's quite right about not being root:if you dont need it dont be it;)
    lynch
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/117526

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice