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 02-25-2006, 12:42 PM   #1
cobweb
LQ Newbie
 
Registered: Feb 2006
Posts: 14

Rep: Reputation: 0
command not found


i am using Ubuntu 5.10 right now, and i don't know what the problem with it is!!! when i try to execute some commands(especially very essential ones), i get "command not found" error!

some typical exemaples for such commands are fork, exec or mkinitrd..

how could i actually get these commands since apt-get install does not work!

thanks in advance,
any help will be appreciated.
 
Old 02-25-2006, 12:47 PM   #2
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
Hi,

Did you try to type 'sudo' infront of those commands?

Sincerely, Jørgen
 
Old 02-25-2006, 12:49 PM   #3
cobweb
LQ Newbie
 
Registered: Feb 2006
Posts: 14

Original Poster
Rep: Reputation: 0
yeah thanks i am in the root mode already.
 
Old 02-25-2006, 12:51 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

I don't know what you find essential and what not, but if you are talking about commands that need root permissions maybe the following will help:

Are you executing these command as root? And if you used su to become root, did you do a su - root, the - is essential.

If so, are the sbin directories (/sbin, /usr/sbin etc) in your PATH setting (echo $PATH to find out).

Hope this helps.
 
Old 02-25-2006, 12:55 PM   #5
cobweb
LQ Newbie
 
Registered: Feb 2006
Posts: 14

Original Poster
Rep: Reputation: 0
druuna, i checked everything you offered. but yes everything is in order, what could be other reasons? basically when i type

man fork

it says that there exists no manual for command fork..
 
Old 02-25-2006, 01:16 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi again,

Did you check if the manpage for fork is actually present? Do a locate fork | grep man to check. If you don't have locate installed try: find /usr -name "fork.[0-9]*" -print.

If you get a hit (something like: /usr/share/man/man2/fork.2, check to see if the path part is in your MANPATH (check /etc/man.conf).

About the fork and exec 'commands': Those commands cannot be run from the commandline. Could you give some examples of the commands you are trying to execute.

Hope this helps.
 
  


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
bash: <command name> command not found smash Programming 5 03-13-2006 09:48 AM
command not found ginda Linux - General 3 07-16-2005 05:15 PM
Command Not Found But I See It!! dmorrell Linux - Software 8 01-22-2005 02:12 PM
du: command not found Wyk3d Mandriva 2 10-30-2004 04:50 PM
et: command not found twan Linux - Games 2 01-31-2004 10:08 AM


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