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 09-11-2006, 04:48 AM   #1
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Rep: Reputation: 32
am confused some commands didnot work :S


hello all

am working on fedora core 5 and there are many commands doesnot work corectly when i type it give me the command not found however when i type man "the command" i found there is amanual pager for the command and it doesn't work and iam reall confused any help !!!!!!!!!!!!!!!!!!!!
 
Old 09-11-2006, 05:00 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Give some examples please. Some commands are only accessible as root.
 
Old 09-11-2006, 05:03 AM   #3
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
or maybe the PATH variable is not set properly.

Try

echo $PATH

and see if the command you are trying is in any of the above paths.
 
Old 09-11-2006, 05:51 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Alot of administrative commands (i,e those to be executed by root) are located in /sbin/ which is not in the default users path.

You can add to your path with the entry in ~/.bash_profile for a single user or /etc/profile for all users.

Code:
PATH=$PATH:<directory1>:<directory2>
export PATH
 
Old 09-11-2006, 06:29 AM   #5
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Original Poster
Rep: Reputation: 32
thanx all for replaying ,,

iam sure that i was root when entering this commands .

commands are like alsaconf , alsactl store , emacs and etc. "i cannot remember all commands that didnot work but iam sure that shell refused many commands i think it may be from the shell version

Last edited by adam_blackice; 09-11-2006 at 06:31 AM.
 
Old 09-11-2006, 07:30 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Well see root depends on whether you logged in with su or su - the former jus tassumes the user root and its priveledges, the latter will assume that AND the environment (ie. paths etc.).

However emacs should be in the user path.

Code:
whereis emacs
then is it in the output of

Code:
echo $PATH
 
Old 09-11-2006, 08:23 AM   #7
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Original Poster
Rep: Reputation: 32
-when i typed whereis emacs it gave me > emacs: /usr/share/emacs

and

echo$usr/share/emacs
bash: echo/share/emacs: No such file or directory

and iwas enter as root
 
Old 09-11-2006, 08:32 AM   #8
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
no no

Code:
 echo $PATH
exactly as shown, this will show your path, i.e the locations the shell will look for executables when you type them in.

/usr/share/ isn't a default path on FC i dont think (from what i remember)

try this in a terminal (as your user you want it for)

Code:
PATH=$PATH:/usr/share/
Code:
export PATH
Code:
emacs
It should start it, if it does hten you can add thos commands to ~/.bash_profile (obviously you can add as many directories as you want)
 
Old 09-11-2006, 08:33 AM   #9
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
What do you mean by

echo$usr/share/emacs ?

Type

/usr/share/emacs

To run the exe.
First check if /usr/share/emacs is an executable

file /usr/share/emacs

Also check out this book, it should help you a lot

http://rute.2038bug.com/
 
Old 09-11-2006, 08:44 AM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
The last time I checked, alsaconf wasn't available in the alsa-utils that ships with Fedora Core. Are you sure you installed Emacs and some of the "missing commands". You can check whether they are install by using YUMEX or doing
Code:
$rpm -qa | grep -i emacs
substitute "emacs" for other programs. If there is no output the program is not installed.
 
Old 09-11-2006, 01:35 PM   #11
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Original Poster
Rep: Reputation: 32
aha there is no o/p for the programe it seems that i didnot install emacs however i have it in my man pages !!!!!!!!!!!!!!
 
Old 09-12-2006, 08:11 AM   #12
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Small correction: it was not installed as an rpm package. That's why the rpm command doesn't give you any output.
The "whereis" command posted earlier did show that "emacs" is installed in /usr/share (not it's usual location, which should be /usr/bin, according to my FC3 box).
So, my guess is that it was installed manually in the wrong location and can't be run without the full path because of $PATH settings, as suggested in earlier posts.
 
Old 09-12-2006, 09:12 AM   #13
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Quote:
Originally Posted by timmeke
Small correction: it was not installed as an rpm package. That's why the rpm command doesn't give you any output.
The "whereis" command posted earlier did show that "emacs" is installed in /usr/share (not it's usual location, which should be /usr/bin, according to my FC3 box).
So, my guess is that it was installed manually in the wrong location and can't be run without the full path because of $PATH settings, as suggested in earlier posts.
/usr/share is for documentation and non binaries so its unlikely that emacs is installed there. The output of the whereis command also shows the location of documentation and other files related to the package e.g.
Code:
vusi@musasa ~ % whereis vim
vim: /usr/bin/vim /etc/vim /usr/X11R6/bin/vim /usr/share/vim /usr/share/man/man1/vim.1.gz
vusi@musasa ~ %
Its not unusual to have documentation about a package on your system without the package itself being installed.
 
  


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
Configuring GRUB for XP, confused about map commands TigerFX Linux - Software 3 05-13-2006 11:31 AM
drakconf didnot start - mandrake 10.1 v2010 Mandriva 16 04-10-2006 03:10 PM
kde didnot start mandrake v2010 Mandriva 5 02-07-2006 10:26 AM
How Can I Get My Internet To Work :confused: at6498 Debian 2 05-22-2005 03:22 PM
A confused newbie - startx and other related commands Godsmacker777 Linux - Newbie 2 01-27-2005 01:40 PM


All times are GMT -5. The time now is 11:50 AM.

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