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 06-05-2004, 09:42 AM   #1
NewTuxGirl
Newbie
 
Registered: Feb 2004
Location: Rochester, NY
Distribution: Fedora Core 2
Posts: 8

Rep: Reputation: 0
Unhappy Why aren't common commands working?


Hello-

I just installed Fedora 2 last night, and I seem to be having a PCMCIA problem where it is not recognizin my network cards. It seems to be able to identify the model, but I get a message on boot that the 'device is not present,' as well as when I try to enable the card through the gui. furthermore, there is no acknowledgement beeps when I plug a card in after boot. My ethernet worked when I installed core 1.

I'm having a huge problem with terminal, though. I see commands suggested all over the place--lspci, cardctl, modprobe, ifconfig--but when I try to use any of these I get a bash message telling me the command is not found.

What am I doing wrong? Do I need to be in a certain directory? I have the same failure in root, /dev/, /sbin/, and /etc/.

Please help! I am getting very frustrated. I expected some hardware issues (it's a laptop), but if I can't even use basic commands, how am I supposed to fix anything??? I have two books in front of me, but neither is specifying directories for any of these commands, nor have any message boards.
 
Old 06-05-2004, 09:56 AM   #2
Philippe
Member
 
Registered: Sep 2003
Location: Chiangmai, Thailand
Posts: 53

Rep: Reputation: 15
Hi,

If the command returns "not found", this could be :
- the command does not exist
- the path is not good.

Your path depends on your user. these commands need the root Path, so please begin by typing : su - and the root password. Don't forget the -, or you will not execute the profile and still have the PATH of your user.

"su - root" is the same thing that "su -"

Maybe this helps,

Philippe
 
Old 06-05-2004, 11:24 AM   #3
oldyas
Member
 
Registered: Jun 2004
Location: Bristol, UK
Distribution: SuSe
Posts: 53

Rep: Reputation: 15
whereis

The command "whereis" checks the most likley places for the command you give it.

If for some reason your $PATH is messed up, use

Code:
export PATH="$PATH:<directory-you-want-to-add-goes-here>"
 
Old 06-05-2004, 12:19 PM   #4
NewTuxGirl
Newbie
 
Registered: Feb 2004
Location: Rochester, NY
Distribution: Fedora Core 2
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up

Thanks....a friend pointed out to me though 'su' is enough to log in as root, i need su - root to set up the shell properly.

My card still doesn't work, but at least now I can use tools to find the problem!

Thanks!
 
Old 06-05-2004, 12:58 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,672

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Futhermore, linux only searchs directories in the path enviornment but not the current working directory for a command.

./ is a shortcut for current working directory.
 
Old 06-05-2004, 11:22 PM   #6
Philippe
Member
 
Registered: Sep 2003
Location: Chiangmai, Thailand
Posts: 53

Rep: Reputation: 15
Quote:
Futhermore, linux only searchs directories in the path enviornment but not the current working directory for a command.
Right ... except if you put " . " in your $PATH ;-)

Philippe
 
Old 06-06-2004, 06:01 AM   #7
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
from a term window or command line type:
Code:
which $SHELL
this will tell you what your default shell is.........IE
/bin/bash, /bin/csh, /bin/tsh----------etc.
 
Old 06-06-2004, 10:46 AM   #8
NewTuxGirl
Newbie
 
Registered: Feb 2004
Location: Rochester, NY
Distribution: Fedora Core 2
Posts: 8

Original Poster
Rep: Reputation: 0
Oooo....good to know

That sounds *very* useful....thanks!!!

So much to learn!

 
Old 06-07-2004, 10:42 AM   #9
Santas
Member
 
Registered: Jun 2003
Location: Over the rainbow
Distribution: Mandrake 10 / Guadalinex
Posts: 290

Rep: Reputation: 30
Put " . " in the PATH is not a good idea.
 
  


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
BOGUS.common.04y -> /home/common/Mailbox jayakrishnan Linux - Networking 0 11-19-2005 04:48 AM
Commands in Gnome (and common X programs) detly Linux - Software 3 11-16-2005 01:54 AM
Cheet Sheet for common linux commands? neocookie Linux - General 7 09-23-2005 03:47 PM
Common Linux Commands/Applications in Suse 9.2 jedcred Linux - Newbie 1 03-12-2005 06:56 PM
Commands not working jongage Linux - Newbie 3 11-24-2004 09:29 PM

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

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