LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-06-2004, 05:56 PM   #1
blackulafedora1
LQ Newbie
 
Registered: Apr 2004
Location: Atlanta
Distribution: Fedora, Slackware, ?
Posts: 15

Rep: Reputation: 0
This is very strange to me..


I have always been able to "ifconfig" to config or bring my eth0 up or down. But this is very strange. I have always been able to issue the "ifconfig" command in every linux distro that I have ever tried. Never a prob. But if config gives me a "[root@localhost sbin]# ifconfig" "bash: ifconfig: command not found" ahhh.. I have tried everything that I can think of. I tried using up and eth0 up... nothing. I dont get it.. I am using fedora core linux and I used to be able to use ifconfig, and my eth0 is working and I am posting from my linux box right now... does anyone know what the problem could be... I have read the man page and googled it up and searched linux forums, I have not found someone with the same problem as me and got it fixed.. this really puzzles me.. any Ideas can help. I am stumped by this one.. if anyone needs to know anyinfo about my system. please let me know..
thanks good people.

Blackulatech1

:-)
 
Old 04-06-2004, 06:15 PM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
dude is this a joke?

/sbin/ifconfig

it either doesnt exist or you need to add its location to your shells path.
You dont have to lie to kick it man.
 
Old 04-06-2004, 06:19 PM   #3
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
sounds to me that ifconfig isnt in your path, type "whereis ifconfig" to find the binary, then you can execute it by its full path or by changing your path to include the directory its in.
 
Old 04-06-2004, 06:21 PM   #4
blackulafedora1
LQ Newbie
 
Registered: Apr 2004
Location: Atlanta
Distribution: Fedora, Slackware, ?
Posts: 15

Original Poster
Rep: Reputation: 0
soory bro... :-)

I wasent lying. :-) Where do I edit the shell path? well. I'll google up an answer to my shell path question and then get back to you if I have to. Thanks for the help man.. :-)

blackulatech1
 
Old 04-06-2004, 06:37 PM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
AutOPSY - politeness costs nothing.

If Blackulafedora1 says that the command has stopped working, then it has stopped working. Do not call someone a liar or otherwise insult them unnecessarily on LQ.

blackulafedora1 - open up a console and type in whereis ifconfig and see what that gives you. Post back with the answer.
 
Old 04-06-2004, 06:43 PM   #6
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
try going into root, then try the command again
 
Old 04-06-2004, 06:44 PM   #7
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
.profile .login .bashrc .bash_profile

should contain a PATH variable somewhere.

Your path variable will be in your home directory, locate by typing ls -a

.cshrc .something, one of those shell files.
 
Old 04-06-2004, 06:45 PM   #8
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
[QUOTE]Originally posted by XavierP
[B]AutOPSY - politeness costs nothing.

If Blackulafedora1 says that the command has stopped working, then it has stopped working. Do not call someone a liar or otherwise insult them unnecessarily on LQ.


I didnt mean it like that, but I apologize anyhow.
 
Old 04-06-2004, 06:48 PM   #9
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Cool. The main drawback of typed conversations is that it is hard to get vocal inflections correct. Things that sound fine in normal conversation can look wrong when typed.

But moving on ......
 
Old 04-06-2004, 07:20 PM   #10
blackulafedora1
LQ Newbie
 
Registered: Apr 2004
Location: Atlanta
Distribution: Fedora, Slackware, ?
Posts: 15

Original Poster
Rep: Reputation: 0
*

ifconfig: /sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz

This is what it gave me...

I googled for linux PATH bash, and found some stuff but not exactally what I was looking for.

lemme read these other replies about editing PATH and I'll get back in a min..

thanks for all your help.. :-)

blackulafedora1

oh yea... ls -a .bashrc returned this to me

.bashrc

humm

should or could I edit .bashrc

I need to look and see exactally what .bashrc is. I know that a file starting with "." is a hidden file some type of special file. Might not be hidden? heh. thanks
 
Old 04-06-2004, 07:22 PM   #11
blackulafedora1
LQ Newbie
 
Registered: Apr 2004
Location: Atlanta
Distribution: Fedora, Slackware, ?
Posts: 15

Original Poster
Rep: Reputation: 0
what I was getting from google. that I mentioned at the start of my last post was an export PATH=$PATH **** something??? heh.. :-) I dont think that it pertained to what I was looking for, not exactally at least.
 
Old 04-06-2004, 07:29 PM   #12
blackulafedora1
LQ Newbie
 
Registered: Apr 2004
Location: Atlanta
Distribution: Fedora, Slackware, ?
Posts: 15

Original Poster
Rep: Reputation: 0
I guess I'm really glad that I was able to use ifconfig a few weeks ago to get my eth0 setup. or else I might have real problems getting info. I just wonder how it got removed from my PATH or what happened to it.. heh
 
Old 04-06-2004, 09:51 PM   #13
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
How are you getting to root?

As a user, your path does not include /sbin or /usr/sbin which means that you wouldn't have that command available to you unless you specified the absolute (full) path. Even then, as a user, you may not have permission to execute it.

There are several ways of becoming root. Simply using the "su" command can act differently in various distros. Normally, when you simply use su, I believe it gives you only /bin /sbin /usr/bin and /usr/sbin. (Correct me if I'm wrong, people )

Using the command "su -" actually logs root in, and rereads your /etc/profile and /etc/bashrc if they exist and sets up full system wide environment variables as well as any /root/.bashrc .login .bash_profile that are user specific (to root, in this case.)

If you log in with su - or actually log in at a login: prompt with root, you may find it's still in your path.

Using su by itself in Fedora Core may simply give your regular user root permissions, but not change the executable paths.



PS -- export PATH is exactly what you're looking for.

man bash
the bash howto at www.tldp.org

There's lots of info out there, get crackin'! (Or hackin, whichever may be your preference.)

--Shade
 
Old 04-06-2004, 10:09 PM   #14
blackulafedora1
LQ Newbie
 
Registered: Apr 2004
Location: Atlanta
Distribution: Fedora, Slackware, ?
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks Shade.. :-) I was under the impression that "su" gave me full root permissions. I was using "su" not "su -" I really enjoy using linux, I come from a DOS and Windows backround, and linux is better for my thirsty mind. Now, I love linux. :-) Sometimes I just think I am doing the right thing ie. "su" vs. "su -" and I learn a little something and get a push in the right direction by someone that wants me to find the computing experience that is right for me, and was right for them. UNIX is the best. Solid. Thanks again Shade. I will post more, I'm sure of that. I have many questions about how linux works, and some of the answers will not be found by me. Sometimes I am blind to things.

blackulafedora1

Thank you all for your help.. :-)
 
Old 04-06-2004, 10:17 PM   #15
blackulafedora1
LQ Newbie
 
Registered: Apr 2004
Location: Atlanta
Distribution: Fedora, Slackware, ?
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks Shade.. :-) :-) "su -" solved my root permissions problem (which was all it was to begin with). I got ifconfig kickin right away.. I guess I logged on to my system as root before.. heh heh... Peace man..

blackulafedora1

:-)
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dd very strange. bruse Linux - Newbie 9 09-19-2005 06:37 AM
Strange New Look Boffy Mandriva 4 04-14-2005 07:23 PM
strange, strange alsa problem: sound is grainy/pixellated? fenderman11111 Linux - Software 1 11-01-2004 05:16 PM
Sound Issues with XMMS/ mpg123 strange (strange noises) thegreatbob Linux - Software 0 06-25-2004 03:18 PM
strange wim Linux - General 3 02-06-2002 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:19 AM.

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