Find the answer to your Linux question:
Results 1 to 8 of 8
I am new to the linux world. i am running redhat 9 i am having trouble when trying to get my local ip address. ipconfig -a|more says ipconfig command not ...
  1. #1
    Just Joined!
    Join Date
    Sep 2003
    Posts
    23

    bash: ipconfig command not found



    I am new to the linux world. i am running redhat 9 i am having trouble when trying to get my local ip address.

    ipconfig -a|more

    says ipconfig command not found

    weird thing is i can man ipconfig

    the same thing also happens with init and telinit which should be linked.
    thanks for the help

  2. #2
    Linux User
    Join Date
    Jun 2003
    Location
    Huntington Beach, CA
    Posts
    390
    I've never heard of ipconfig, but if it exists you probably have to be root to run it. I know of ifconfig, which has a man page but has root only permissions. So su root then run it.

  3. #3
    Just Joined!
    Join Date
    Sep 2003
    Posts
    83
    Hi,

    I believe what you want to do is:

    ifconfig -a | more

    not

    ipconfig -a | more

    ipconfig is a Windows command -- ifconfig is the Linux/Unix
    equivalent.

    If you are not logged in as root, specify the directory where the command
    is located:

    /sbin/ifconfig -a |more

    Hope that helps.

  4. #4
    Linux User
    Join Date
    Jun 2003
    Location
    Huntington Beach, CA
    Posts
    390
    Hey thanks kihbord, I didn't know that I could run it as a regular user.

  5. #5
    Linux Engineer
    Join Date
    Dec 2002
    Location
    New Zealand
    Posts
    766
    ur not meant to be able to. i can coz i suid'ed it but it wasnt avalible to normal users by default.

  6. #6
    Just Joined!
    Join Date
    Sep 2003
    Posts
    23

    Thanks

    I appreciate the help. i could have sworn I did that last night but your suggestions helped out so much. i look forward to getting better at this and helping all of you. Thanks again.

    MB

  7. #7
    Just Joined!
    Join Date
    Sep 2003
    Posts
    83
    Sorry for the confusion, Hellmasker is right -- you can not perform configuration tasks using ifconfig. You would have to be root.

    You can only view the current configuration as a normal user.

    Thanks for the note Hellmasker.

  8. #8
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    You might want to consider /sbin/ifconfig | less if you need a pager, though. As long as you have a non-dumb terminal, more is kind of defunct today, don't you think?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •