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.
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
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
4. UNIX for Dummies Questions & Answers
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
5. Shell Programming and Scripting
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
6. SCO
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
7. Shell Programming and Scripting
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
8. Solaris
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
whereis(1) General Commands Manual whereis(1)
NAME
whereis - Locates files for programs
SYNOPSIS
whereis [-bms] [-u] [-BMS directory... -f] program...
The whereis command locates source, binary, and/or reference page files for the specified program program.
OPTIONS
The -b, -m, and -s options can be used in combination to restrict the search. Searches for an executable program. Searches for the refer-
ence page for a program. Searches for the sources of a program.
Use the -B, -M, and -S options to change or limit the places whereis searches. Specifies the binary directories to search. Specifies the
reference page directories to search. Specifies the source directories to search.
The other options that can be used with whereis are as follows: Terminates the last directory list and signals the start of program names.
Used with other options to indicate when there is no file for program in the default or specified directory or directories (source, binary,
or reference page).
DESCRIPTION
The whereis program locates source, binary, and reference pages for the specified programs. When looking for a match, the program names
are stripped of leading pathname components and any trailing extensions of the form (for example, s. resulting from the use of the Source
Code Control System see sccs(1), are also handled.
The default directories searched by the whereis command are as follows: /etc /etc/nls /sbin /usr/bin /usr/lbin /usr/lbin/spell /usr/ccs/lib
/usr/lib /usr/local /usr/hosts /usr/sbin
EXAMPLES
To find files matching cat in the default source, binary, and reference directories, enter: whereis cat To search for reference pages for
app13 in the directory /usr/local/man, enter: whereis -M /usr/local/man -f -f appl3 To find the programs in /usr/bin that do not have ref-
erence pages in /usr/share/man/man1 with source files in /usr/src/cmd, enter: whereis -u -M /usr/share/man/man1
-S /usr/src/cmd -f /usr/bin/* To find which files in the current directory either have no reference pages in the default reference
directories or have more than one, enter: whereis -m -u *
FILES
Default binary directories. Default binary directories. Default reference directories. Default source directories.
SEE ALSO
Commands: apropos(1), find(1), man(1), which(1), catman(8)
whereis(1)