LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 05: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 06:52 PM.
 
Old 04-16-2003, 06: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, 06: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, 09: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



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

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

All times are GMT -5. The time now is 03:17 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
Open Source Consulting | Domain Registration