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 02-25-2006, 11:42 AM   #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, 11:47 AM   #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, 11:49 AM   #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, 11:51 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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, 11:55 AM   #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, 12:16 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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



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

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

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