Sponsored Content
Full Discussion: whats setenv in unix
Top Forums UNIX for Dummies Questions & Answers whats setenv in unix Post 302201816 by sysgate on Tuesday 3rd of June 2008 08:06:55 AM
Old 06-03-2008
In C shell sets the value of an environment variable, example :
Code:
setenv PATH "/bin:/usr/bin:/usr/sbin:ucb/bin"

which sets the environment path to search for files in the /bin, /usr/bin, /usr/sbin and ucb/bin directory.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Whats the dif between AIX and UNIX?

Hi, sorry to ask and exceedingly dumb question, but as far as UNIX goes I really am the newbiest of the newbies. I've been posed a question by one of my bosses, I'll break it down. He says "We have a big AIX box and I'd like to use Notes to handle the SMTP side of things." I say, "Okay I... (2 Replies)
Discussion started by: SlyClone2k
2 Replies

2. Shell Programming and Scripting

Whats the Vhost Command for the Unix Shell

anyone know? would be greatly thankful. (4 Replies)
Discussion started by: shellnewbie
4 Replies

3. UNIX for Dummies Questions & Answers

Unix? Whats that

Hi, I am curently running Windows. Don't laugh. Unix is a OS right? I am thinking about getting it but am not sure about geting Unix or Linux. I could use all the help I can get, Thanks! (6 Replies)
Discussion started by: DamienVryce
6 Replies

4. Programming

whats the command in unix

what is the command to print the text in a specifed location eg i have text ("i am here"); i have to print it on location 20,20 wat is the command and which header file it uses i am currentlr working in solaris 5.8 using unix (1 Reply)
Discussion started by: ramneek
1 Replies

5. UNIX for Dummies Questions & Answers

Linux OR Unix Whats The Difference!

What is the difference bettween linux and unix? Sorry but I am really new to this! :confused: Also are they BOTH free :-D (1 Reply)
Discussion started by: jamesthemagicia
1 Replies

6. UNIX for Dummies Questions & Answers

Whats the latest verson of Unix?

Also can unix be downloaded? Thank you, Nic (2 Replies)
Discussion started by: nicjr3
2 Replies

7. UNIX for Dummies Questions & Answers

Whats is the user of $ and # in UNIX ???

Whats is the user of $ and # in UNIX ??? (2 Replies)
Discussion started by: Paynemax
2 Replies

8. UNIX for Advanced & Expert Users

Whats the fastest UNIX compression utility you know of.

Hi everyone, Just interested to know everyones opinions on the fastest unix compression utility with okejish compression (doesnt have to have awsome compression). I know of gzip bzip2 (sucks lol) and a couple of others but what is a great one for compression large amounts of data that wont eat... (8 Replies)
Discussion started by: aleks001
8 Replies

9. UNIX for Advanced & Expert Users

setenv.

helllo every body .. hope you are having good time programming in unix . here is a little problem faced me : setenv("myvar","bla bla",1); system("myvar=$(grep....)); printf("%s\n", getenv("myvar")); will print : bla bla .. how can i get the value of grep into my program ? ... (7 Replies)
Discussion started by: max_475
7 Replies

10. Programming

Whats the most in-demand programming language UNIX

I am interested in learning Programming Language to complement my UNIX. What language should I concentrate on to enhance my UNIX. What companies are seeking with UNIX. What languages are used with UNIX as for as there application. Are there any one here from DC (6 Replies)
Discussion started by: zbest1966
6 Replies
whereis(1B)					     SunOS/BSD Compatibility Package Commands					       whereis(1B)

NAME
whereis - locate the binary, source, and manual page files for a command SYNOPSIS
/usr/ucb/whereis [-bmsu] [-BMS directory... -f] filename... DESCRIPTION
The whereis utility locates source/binary and manuals sections for specified files. The supplied names are first stripped of leading path- name components and any (single) trailing extension of the form .ext, for example, .c. Prefixes of s. resulting from use of source code control are also dealt with. whereis then attempts to locate the desired program in a list of standard places: etc /sbin /usr/bin /usr/ccs/bin /usr/ccs/lib /usr/lang /usr/lbin /usr/lib /usr/sbin /usr/ucb /usr/ucblib /usr/ucbinclude /usr/games /usr/local /usr/local/bin /usr/new /usr/old /usr/hosts /usr/include /usr/etc OPTIONS
The following options are supported: -b Searches only for binaries. -B Changes or otherwise limits the places where whereis searches for binaries. -f Terminates the last directory list and signals the start of file names, and must be used when any of the -B, -M, or -S options are used. -m Searches only for manual sections. -M Changes or otherwise limits the places where whereis searches for manual sections. -s Searches only for sources. -S Changes or otherwise limit the places where whereis searches for sources. -u Searches for unusual entries. A file is said to be unusual if it does not have one entry of each requested type. Thus `whereis -m -u *' asks for those files in the current directory which have no documentation. EXAMPLES
Example 1 Finding files Find all files in /usr/bin which are not documented in /usr/share/man/man1 with source in /usr/src/cmd: example% cd /usr/ucb example% whereis -u -M /usr/share/man/man1 -S /usr/src/cmd -f * FILES
o /usr/src/* o /usr/{doc,man}/* o /etc, /usr/{lib,bin,ucb,old,new,local} ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscpu | +-----------------------------+-----------------------------+ SEE ALSO
chdir(2), attributes(5) BUGS
Since whereis uses chdir(2) to run faster, pathnames given with the -M, -S, or -B must be full; that is, they must begin with a `/'. SunOS 5.11 10 Jan 2000 whereis(1B)
All times are GMT -4. The time now is 01:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy