Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-24-2004, 09:35 PM   #1
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, 09:47 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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, 09:52 PM   #3
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, 10:29 PM   #4
Registered: Nov 2004
Distribution: Ubuntu 4.10 ( 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


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

All times are GMT -5. The time now is 07:23 PM.

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