# set variable PATH

**URL:** <https://community.unix.com/t/set-variable-path/162032>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [May 29, 2006, 8:02am UTC](https://community.unix.com/t/set-variable-path/162032 "2006-05-29T08:02:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![merope](https://community.unix.com/letter_avatar/merope/32/6_449c533f586939b6e5f246632a46421f.png) [@merope](https://community.unix.com/u/merope)\
**Post date:** [May 29, 2006, 8:02am UTC](https://community.unix.com/t/set-variable-path/162032/1 "2006-05-29T08:02:07Z")

</div>

Hi,

i know that this topic discussed for many times but although i had researched them i couldnt succeed in my problem.  
i am following a step-by-step instruction guide and must do the following:

```nohighlight
-------------
To ensure access, set the path PATH $ORACLE_HOME/perl/bin:$PATH and set the Perl library path setenv PATH $ORACLE_HOME/perl/lib/5.6.1:$PATH.
-------------

i am using sun solaris os. 9
terminal, switch to oracle user,
then type 
export PATH=$PATH:/u01/app/oracle/product/10.1.2/middle/perl/bin 

after that get the message :

PATH=/usr/bin:/u01/app/oracle/product/10.1.2/middle/bin:/u01/app/oracle/product/10.1.2/middle/dcm/bin:/u01/app/oracle/product/10.1.2/middle/opmn/bin:/usr/sbin/:/usr/openwin/bin:/usr/ucb:/etc:.:/u01/app/oracle/product/10.1.2/middle/perl/bin: is not an identifier

 :( 

tried this one again

setenv PATH $/u01/app/oracle/product/10.1.2/middle/perl/lib/5.6.1:$PATH
setenv: not found

```

i am really dumb, know nothing about unix. please help!

cheers,

---

<div class="post-metadata">

**Author:** ![matrixmadhan](https://community.unix.com/letter_avatar/matrixmadhan/32/6_449c533f586939b6e5f246632a46421f.png) [@matrixmadhan](https://community.unix.com/u/matrixmadhan)\
**Post date:** [May 29, 2006, 8:16am UTC](https://community.unix.com/t/set-variable-path/162032/2 "2006-05-29T08:16:42Z")

</div>

what is the shell that you are using ?

i believe setenv is supported in csh and not in ksh.

if your requirement is adding a specified path to your PATH variable,  
just do this,

```nohighlight
to add new dir /oracle/ora_home/newdir/

PATH=/oracle/ora_home/newdir:$PATH
export PATH

```

---

<div class="post-metadata">

**Author:** ![merope](https://community.unix.com/letter_avatar/merope/32/6_449c533f586939b6e5f246632a46421f.png) [@merope](https://community.unix.com/u/merope)\
**Post date:** [May 29, 2006, 8:22am UTC](https://community.unix.com/t/set-variable-path/162032/3 "2006-05-29T08:22:26Z")

</div>

i am using bash  
great!!  
that worked, my thanks to you! 😛
