LinuxQuestions.org
Review your favorite Linux distribution.
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 04-16-2003, 06:59 PM   #1
rudon
LQ Newbie
 
Registered: Apr 2003
Posts: 5

Rep: Reputation: 0
Question Command not found problem


i want to configure my internet connection using usb adsl modem but i cant because the
configuration script needs pppd but
When I type pppd I get "command not found" error
I checked in usr/sbin/ and it's exist and can be activated by typing the full path but when typing the command alone it doesn't work I get the same error for ifdown, ifup, netconfig and many more how can I fix it?
I have redhat Linux 9

Last edited by rudon; 04-16-2003 at 07:52 PM.
 
Old 04-16-2003, 07:07 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Usually the stuff in /sbin and /usr/sbin is for use by administrators (like root), so it probably won't be in the path of the average user. Try becoming root first:

su -

and then run it.
 
Old 04-16-2003, 07:50 PM   #3
rudon
LQ Newbie
 
Registered: Apr 2003
Posts: 5

Original Poster
Rep: Reputation: 0
becoming root doesn't help

i have tried becoming root and it didnt help i have the same
problem
someone told me to try "echo $path" to see the paths
but all i get in result is a blank line even when i'm root.
 
Old 04-16-2003, 10:09 PM   #4
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Ah, if echo $PATH gives you a blank line, then apparently you have *nothing* in your path

One easy way to add stuff to your path is to include them in your ~/.profile (or .bash_profile, or maybe something else depending on your shell), like so:

PATH=$PATH:$HOME/bin:/usr/bin:/bin
export PATH

Also, I believe you can add stuff to /etc/profile which will apply to all users (I'm not too sure how all this works, maybe someone else can clarify)
 
  


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
Problem: Startx Command Not Found rvijay Debian 11 02-13-2005 12:40 PM
path problem - startkde :command not found batfastad Linux - Newbie 7 11-18-2004 08:12 PM
J2sdk problem Javac command not found CollestonPie13 Linux - Software 3 02-15-2004 12:30 PM
depmod -a :command not found. Sound problem Greenhorn Linux - Newbie 4 10-24-2002 11:32 PM
problem installing acrobat : ed: command not found? falcon56215 Linux - Software 2 02-08-2002 12:37 PM

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

All times are GMT -5. The time now is 09:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration