The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how can i check in csh if command found or not found ? umen Shell Programming and Scripting 2 03-03-2007 07:38 PM
code that reads commands from the standard i/p and executes the commands Phrozen Smoke High Level Programming 4 01-22-2007 02:06 AM
Commands not found. kayarsenal Shell Programming and Scripting 1 10-02-2006 05:30 AM
sag.sh[11]: SAG: not found sommer_queen Shell Programming and Scripting 1 09-13-2006 10:20 AM
ksh: cvs: not found ?? rein UNIX for Advanced & Expert Users 2 01-05-2005 05:01 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-21-2005
asif iqbal asif iqbal is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 10
lot of commands not found!

Some of the commands like whereis, cc are not working and also the users can not create a file using
cat > userfile.
How to resolve these problems?
  #2 (permalink)  
Old 02-21-2005
encrypted's Avatar
encrypted encrypted is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2004
Location: Oslo, Norway
Posts: 219
What error messages are you getting?
Is your PATH variable set up correctly?
With regard to users unable to create files:
check if your filesystem is full.
  #3 (permalink)  
Old 02-21-2005
asif iqbal asif iqbal is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 10
commands whereis and cc shows "not found"
when I login as a user I can not create a file, get message "can not create filename".

I figured out type command as a replacement for whereis.
I changed the umask to 777, 000,... but could not create a file.
My PATH= /bin:/usr/bin:/etc: (hopefully it is correct)
I can create file as superuser meaning filesystem is not full. There are hardly couple of files.

thanks
  #4 (permalink)  
Old 02-21-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Try

find / -name cc -print

that should tell you if cc is present anywhere on the system (maybe you have "gcc" installed instead? try that).

With regards to not being able to create files, what does

ls -l .

tell you? Do you have permissions to create files in the directory you are in? Are you in your home directory - can you create files there? Does the file you're trying to redirect "cat" to already exist and you've got "noclobber" set in the shell? (type "set -o" to see what options are set).

Try "touch some_new_filename" and see if that works.

Cheers
ZB
  #5 (permalink)  
Old 02-24-2005
asif iqbal asif iqbal is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 10
Still cc and gcc not found

I have figured out the problem associated with the users. The directory you create for users is owned by the SU(root), so you must change its owner and group.
However cc and gcc are still not found. Can you please help me with that?

thanks
  #6 (permalink)  
Old 02-27-2005
milhan milhan is offline
Registered User
  
 

Join Date: Oct 2002
Location: /home
Posts: 133
Quote:
Originally Posted by asif iqbal
However cc and gcc are still not found. Can you please help me with that?
thanks
hi,
try typing :
$ whereis cc
$ whereis gcc
this should locate these command in your system, if they exist. Otherwise they might not even be installed.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0