www.linux-noob.com: ifconfig command in RH9?? - www.linux-noob.com

Jump to content

Page 1 of 1

ifconfig command in RH9?? command not recognised

#1 User is offline   sallas

  • Noob
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 17-January 04

Posted 17 January 2004 - 02:26 AM

Hi all,

Been a while since I have played around with Linux, but was sure that the ifconfig was equivelant to the windows ipconfig command?
Running the following command in both my RH9 boxes :

ifconfig eth0

Returns :
bash: ifconfig: command not found

I must be missing soemthing simple surely!

TIA.
0

#2 User is offline   hijinks

  • touch /dev/booty
  • PipPipPip
  • Group: Members
  • Posts: 292
  • Joined: 12-December 03

Posted 17 January 2004 - 02:50 AM

you have to be root in order to run that command with no path. If you are root and sued to root make sure you use

su -

make sure you use the dash. If you want to run that command as a user run it like this

/sbin/ifconfig -a
0

#3 User is offline   sallas

  • Noob
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 17-January 04

Posted 17 January 2004 - 09:17 AM

Cheers for that, worked a treat!
Excuse my 'Windows' ways, but in dos you can set the path, is the same possible with Linux?? Is it possible to edit a conf file or something to input the location of commonly used commands for quick access??

TIA.
0

#4 User is offline   hijinks

  • touch /dev/booty
  • PipPipPip
  • Group: Members
  • Posts: 292
  • Joined: 12-December 03

Posted 17 January 2004 - 03:38 PM

yes you can add to the PATH var in /etc/profile
0

#5 User is offline   grep420

  • Linux-Noob Frequent Member
  • PipPipPip
  • View blog
  • Group: Members
  • Posts: 119
  • Joined: 11-December 03

Posted 17 January 2004 - 07:55 PM

You can also set the path locally in your shell profile file. If your using bash { echo $SHELL to find out } then it will be ~/.bash_profile. Or set it manually from command line PATH=$PATH:/new/path but doing this is only temporary.
Four whores and seven beers ago.
0

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users





The G2-style Tux and the header images using them are licensed under Creative Commons BY-NC-SA. The G2-style Tux images are all from http://crystalxp.net.
Thanks to users kami23, lilitux, iva, overlord59, whidou, brightknight, emulienfou on the Crystal XP Tux Factory site.