LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-23-2011, 06:58 AM   #1
spavankumarreddy
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
Question problem with ifconfig


if i am typing the command "ifconfig" it is getting like 'command not found'.what to do?
 
Old 11-23-2011, 07:04 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Install it. In Ubuntu it is in package "net-tools". If you have other distribution, write which.
 
Old 11-23-2011, 07:13 AM   #3
SikDuk
LQ Newbie
 
Registered: Jul 2010
Location: Phoenix & the desert
Distribution: Crunchbang Linux inside Ubuntu 10.04 : LinuxMint9 : PCLinuxOS-2010 : and more to boil my brain..
Posts: 17

Rep: Reputation: 1
sudo ifconfig eth0 ,eth1 or ath0 for a athros chip wifi card..What OS are you using??? This is the read out on Ubuntu10.04 and Linux Mint terminals ;;;;
system@system-desktop:~$ sudo ifconfig
[sudo] password for system:
eth0 Link encap:Ethernet HWaddr 90:e6:ba:ec:13:f6
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::92e6:baff:feec:13f6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7122035 errors:0 dropped:0 overruns:0 frame:0
TX packets:4584230 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10031384332 (10.0 GB) TX bytes:471737543 (471.7 MB)
Interrupt:27 Base address:0x6000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1558 errors:0 dropped:0 overruns:0 frame:0
TX packets:1558 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:227157 (227.1 KB) TX bytes:227157 (227.1 KB)
 
Old 11-23-2011, 07:15 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Redhat does not include /sbin in the users path environment. You can run the command as:
/sbin/ifconfig

Typically those programs found in /sbin are administrative and can only be run as root which is why it isn't in a users path. ifconfig can output status but parameters can only be nodified if you are root.

Last edited by michaelk; 11-23-2011 at 07:20 AM.
 
Old 11-23-2011, 07:16 AM   #5
trappa01
LQ Newbie
 
Registered: Dec 2009
Posts: 20

Rep: Reputation: 8
Check your path too. ifconfig is usually /sbin/ifconfig which is often not in the default path for non-admin users.
 
Old 11-23-2011, 07:18 AM   #6
trappa01
LQ Newbie
 
Registered: Dec 2009
Posts: 20

Rep: Reputation: 8
Ahh.. I see that michaelk has quicker fingers than me !
 
Old 11-23-2011, 08:06 AM   #7
rahulkya
Member
 
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 186
Blog Entries: 3

Rep: Reputation: 33
if you have root access then you can run that command from root account ...otherwise follow above suggestions..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ifconfig problem gitecravirs Linux - Newbie 2 05-11-2009 12:13 AM
ifconfig problem squirrel001 Linux - Networking 2 03-04-2006 01:13 AM
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 07:58 AM
ifconfig problem Gnute Solaris / OpenSolaris 1 07-10-2005 12:49 PM
Ifconfig problem Mneumonic Linux - Software 1 03-14-2003 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration