View Full Version : ifconfig ?
esthelle
2nd April 2008, 01:20 PM
when i type ifconfig i have the message command not found help me !!!!!!!!nd not
bob
2nd April 2008, 01:25 PM
Did you try as full root (su -) with the space and minus sign?
Dan
2nd April 2008, 01:32 PM
Title edited to comply with guidelines
esthelle
2nd April 2008, 01:38 PM
what is the complete command ?
with other distros just ifconfig with no argument on root
bob
2nd April 2008, 01:46 PM
Open a terminal
sign in with 'su -' and your password
type "ifconfig"
There is a difference between "su" which gives your user some root powers, but leaves it in the user's path and "su -" which gives you full root powers and puts you in root's path.
bob
2nd April 2008, 01:56 PM
Here, read this: http://rute.2038bug.com/node14.html.gz#SECTION001472000000000000000
And, again, this is NOT Ubuntu. Your teacher has wisely chosen to give you a more advanced distro to work with so that you'll learn a bit more about linux. Ubuntu is a great distro for a new user who just wants everything set up and ready to work (basically, someone who's just come from Windows). However, linux is an operating system that has many ways of doing things. With Fedora, you're learning different methods which will make it easier to migrate from one distro to another.
My advice, which I had sent you in a PM and which you've yet to follow, is to be calm in your posts, ask for help politely and do some research on your own too. Your attitude will determine how others treat you and ultimately it may determine if you remain a member here.
b_martinez
2nd April 2008, 02:02 PM
Hi esthelle.
You already have another answer in your other thread of the same name.
To explain a little more:
when you get that answer to a command you know is possible, it usually means that command isn't in your path.
What 'in your path' means is that you are expected to have only a certain level of access to operations of the system.
The thinking:
As a user, you really have no need to configure the network interfaces, since the administrator is supposed to set it up.
The reality:
on a home computer, you are the admin, but you are discouraged from running as root all the time for very good security reasons.
the solution:
when you hit the 'command not found', try adding /sbin/ to the command and it will sometimes work. Sometimes,it will tell you that 'only root can do that'.
This is when you need to start with the 'su - c' thingy.
su -c 'ifconfig eth0 up'
will start the net, if it's hooked up. You will need to know the root password.
hth
bill
edit: notice the single quotation marks, they are needed with the su -c to show what command is to be run.
Hanzou
2nd April 2008, 03:25 PM
You get the message command not found because are not in the directory where the ifconfig command is located. If you change, cd to the directory where ifconfig is you can run the command. With Fedora I believe ifconfig is in the /sbin directory.
That is very simply why you get the "command not found" error.
scottro
2nd April 2008, 03:40 PM
http://home.nyc.rr.com/computertaijutsu/rhpath.html
I put up that page because so many people have the question. :)
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.