lot of commands not found!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers lot of commands not found!
# 1  
Old 02-21-2005
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  
Old 02-21-2005
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  
Old 02-21-2005
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  
Old 02-21-2005
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  
Old 02-24-2005
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  
Old 02-27-2005
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Baisc commands in Solaris 10 not found

I just installed Solaris 10 on my virtual machine. firstly I want to complie a c program using gcc but "the gcc is not found" so I looked for a way and try to install the gcc and I tried the following command pkg install gcc-45 but however, the "pkg is not found as well" I also tried... (2 Replies)
Discussion started by: roberts123
2 Replies

2. Shell Programming and Scripting

Need lot of examples

Hi, I need a word doc or pdf which contains lots of Shell Programming samples... This is for my open book examination, thanks in advance.. (2 Replies)
Discussion started by: karthikeayan
2 Replies

3. SCO

Very lot of systemcalls

I have one system running SCO MP4, whitch has sometimes a lot of system calls /s : CALLS/s: 23405 calls 0 forks 0 execs 6067 reads 78 writs 11975 Krwch PAGING/s: 0 pgins 0 pgots 5983 atchs 0 pflts 322 vfltsThese values are found with the tool rtpm ... (1 Reply)
Discussion started by: jkuiper
1 Replies

4. Shell Programming and Scripting

chmod a lot of files

So i have about 600gb of data.. in which there are alot of directories and alot of files.. Im trying to put this on a ftp server.. So i want to set the permissions on the directories to be 755 and the permission on the files to be 644. So i used: find . -type d -exec chmod 755 {}\; and find .... (6 Replies)
Discussion started by: supermiguel
6 Replies

5. UNIX for Dummies Questions & Answers

help! I need a lot of help with unix!

Hey people, at first: I'm from Germany, so my english isn't very good, okay?;) I this september I start with my studys and now we use UNIX! I understand nothing. No, that's not right, at the beginnig I understood a little bit. But now we are at the .profile and there I have problem because my... (1 Reply)
Discussion started by: Tsukasu
1 Replies

6. Shell Programming and Scripting

Need a lot of help with a script

First off just would like to say hello I'm new to this forum but it looks very interesting and I'm sure I will learn a lot from the various people here.:b: I'm new to UNIX and more so scripting in it. I have an assignment for a class that's mostly done online and my teacher is of no help... (7 Replies)
Discussion started by: tweak
7 Replies

7. Shell Programming and Scripting

rename a lot of files again

here I go again...kinda hard to explain so I apologize. I need to rename a bunch of files in a directory. I need to remove the first three characters of the filename, and then toward the end of the filename there is constant text inside of brackets. here is a demo (not for real) 'ls -1' of the... (11 Replies)
Discussion started by: ajp7701
11 Replies

8. Shell Programming and Scripting

Commands not found.

I executed my script and it says not found. #! /bin/ksh trymonitor.sh: rm: not found. + sleep 15 trymonitor.sh: sleep: not found. trymonitor.sh: awk: not found. trymonitor.sh: wc: not found. Thanks and Regards, Kay (1 Reply)
Discussion started by: kayarsenal
1 Replies
Login or Register to Ask a Question