LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-13-2007, 10:58 AM   #1
mf5160
LQ Newbie
 
Registered: Oct 2006
Posts: 23

Rep: Reputation: 15
more shell commands


Hi
I am using fedora core 6 and i tried to use the command lspci and it sais command not found. This happend to me with other useful commands like mbmon etc. Are they not included in the default installation of fedora ? Does anyone know where to find most of those ?
Thanks
 
Old 03-13-2007, 11:00 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
The commands reside under /sbin which isn't in the $PATH environment variable of regular users (because many of those commands don't work when run by a non-root user). Try
Code:
/sbin/lspci
instead, or if you run su to become root, use
Code:
su -
instead, it takes root's $PATH variable into use and you don't need to type /sbin/ in front of the commands.

Shortly: all the commands are there, and even in the same place where you've used to, but you don't have /sbin/ included in the environment variable that tells your shell which paths to look for a command if it's full path is not given.

Last edited by b0uncer; 03-13-2007 at 11:03 AM.
 
Old 03-13-2007, 11:00 AM   #3
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Sorry, seems like I did it *again*. Maybe I'll have to ask about this in the LQ suggestions&feedback forum some day when I learn more about how I do this (get the reply posted twice with one click).

Last edited by b0uncer; 03-13-2007 at 11:03 AM.
 
Old 03-14-2007, 01:41 PM   #4
mf5160
LQ Newbie
 
Registered: Oct 2006
Posts: 23

Original Poster
Rep: Reputation: 15
That worked great. Thnx a lot. Do you by any chance know any commands to monitor my motherboard ?
 
  


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
about shell commands nesta Linux - Newbie 3 12-12-2006 05:40 PM
Alias or shell script to confirm 'exit' commands from a shell rose_bud4201 Programming 2 03-08-2006 02:34 PM
commands in shell? kalleanka Linux - General 9 02-01-2006 07:38 AM
Fedora Shell Commands tregg Fedora 3 01-12-2005 04:52 AM
shell commands! krishlinux General 1 10-05-2003 04:47 AM


All times are GMT -5. The time now is 05:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration