LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-24-2004, 08:35 PM   #1
jongage
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
Commands not working


The command ifconfig is not working in XWindows. Under any user. If I switch to full text view under root I can run this command but not in XWindows terminal. Did I set something wrong on installation and how can I get these commands to work.
 
Old 11-24-2004, 08:47 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,133

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
They're not in your user's PATH -- either add /sbin to your PATH or give the full path to the command, /sbin/ifconfig. You're probably bewcoming root by doing "su", but if you do "su -" instead you'll inherit root's environment, which will have /sbin in its PATH.
 
Old 11-24-2004, 08:52 PM   #3
jongage
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Original Poster
Rep: Reputation: 0
I set the Path that you said to the PATH variable and it worked thanks!
 
Old 11-24-2004, 09:29 PM   #4
rekurzion
Newbie
 
Registered: Nov 2004
Distribution: Ubuntu 4.10 (2.6.8.1-3-386) and loving it.
Posts: 15

Rep: Reputation: 0
When you are trying to use a command and it is not working, these cli tools are handy.

whereis <command> : should return the location of the command
which <command> : returns the location attached to the command
locate <name> : is a rather quick find (not necesarily)

of course, using these outputs along with know what is in your PATH variable should give you a clue to finding a solution.

The examples i gave are the short short short version, you would do better reading the man pages on them to understand better what they do
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
some commands not working in crontab navaladi Linux - Newbie 2 01-17-2005 06:07 AM
certain commands aren't working on the terminal bariswheel Mandriva 4 12-22-2004 04:35 PM
commands are not working in kernel 2.6.9 slack_baby Linux - Software 8 11-27-2004 01:04 PM
Why aren't common commands working? NewTuxGirl Linux - Newbie 8 06-07-2004 10:42 AM
iptables save commands are not working tarheel92x Linux - Networking 1 01-19-2004 05:16 PM


All times are GMT -5. The time now is 06:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration