LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2003, 05:15 PM   #1
jpflager
LQ Newbie
 
Registered: Feb 2003
Posts: 10

Rep: Reputation: 0
My linux won't recognize commands


I'm having problems when trying to enter particular commands. For instance when I try to enter "service network restart" or even try to use Pico linux gives me an error message "command not found" I tried to use the "updatedb" command, but it didn't work. Any ideas?
 
Old 02-19-2003, 05:23 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Are you running them as root? System-related utilities (like service, or updatedb) are not usually in the average user's path, and won't be recognized without a ful path name.

If you are trying to run them as root, try using the full path name, like /sbin/service, or /usr/bin/updatedb (yours might be in different locations, but you can usually check in /sbin, /usr/sbin, /bin and /usr/bin).
 
Old 02-19-2003, 06:03 PM   #3
jpflager
LQ Newbie
 
Registered: Feb 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks, works like a charm, will and update db while I'm in these directories allow me to use the commands anywhere?
 
Old 02-19-2003, 06:12 PM   #4
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
I believe updatedb is intended for updating the locate database, allowing the 'locate' command to find files quickly. Aside from that I don't think it has any purpose.

So, you'd run 'updatedb' after installing a bunch of stuff, so the next time you run 'locate' it will be able to find those files.

In order to use the commands anywhere, you would need to add those paths to your profile. To find out what your current path is, type:

echo $PATH

To add other stuff to it, it's something like:

export $PATH:/usr/bin:/bin

(varies depending on what shell you use). Look for some shell HOWTOs, I am sure they will get you going

Last edited by wapcaplet; 02-19-2003 at 06:13 PM.
 
  


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
Help! Nero Linux does not recognize CD! Him Linux - Software 5 09-09-2005 09:52 AM
Win XP Install Overwrites MBR and Linux Rescue Fails to Recognize Linux Partitions carrlane Linux - Software 8 01-14-2004 07:49 AM
Linux does not recognize partitions psybertron Linux - Newbie 2 11-28-2003 11:12 PM
Linux does not recognize all my memory schifi Linux - General 9 09-28-2001 06:57 AM
LINUX WON'T RECOGNIZE MY MODEM!! skotzko Linux - General 1 01-03-2001 09:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:12 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