Questions on PATH env havinf softlink


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Questions on PATH env havinf softlink
# 1  
Old 05-04-2006
Questions on PATH env havinf softlink

I have a question regarding the PATH environment on SunOS.
I am setting the PATH as -

export PATH=$PATH:/bin

and /bin has a softlink as

lrwxrwxrwx 1 root root 9 Oct 1 2004 /bin -> ./usr/bin

So, will this path will work for the bin having the softlink?

Thanks for the help.
# 2  
Old 05-04-2006
It is supposed to be: /bin -> /usr/bin
Once you get the softlink right, the next problem is that /usr/bin is probably already on your PATH as an earlier directory. So you would never find anything in /bin. But in general you have have softlinks on your PATH.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Env file path

Hi, when I run "env" there are few variable prinitng related to application $env SRV=test NVV=test2 from where this file is invoking, I checked in ./bash_profile and ./profile didn't find the variable. So what is the file I need to edit this variable. (8 Replies)
Discussion started by: stew
8 Replies

2. UNIX for Dummies Questions & Answers

Softlink problem

Hi there is a file 'linkk' and i have created a softlink for it in another directory. $ pwd /home/guest/khare $ ln -s linkk /home/guest/khare/AWK/done now under AWk dir i can see that the softlink is created. $ pwd /home/guest/khare/AWK $ ls -lrt *done lrwxr-xr-x 1 khare... (2 Replies)
Discussion started by: scriptor
2 Replies

3. Shell Programming and Scripting

Softlink directory name not working on SUN

I am facing a peculiar problem on SUN machine. There is a soft link pointing to a directory. And there is a shell script inside this soft link which is trying to get the directory name from where this script is being executed. NAME="$(cd $(dirname $0); pwd)" I want to fetch the... (1 Reply)
Discussion started by: Tirthankar
1 Replies

4. Web Development

Deny from env=env-variable Does not work

(Above from Apache docs). On my system, using: SetEnvIf User-Agent Mozilla IsBad=1 Order allow,deny Allow from all Deny from env=IsBad ...I see that environment variable is set (using phpinfo()) but the page is still served. No errors in the Apache logs. (1 Reply)
Discussion started by: gnurob
1 Replies

5. UNIX for Dummies Questions & Answers

Softlink Issue

Hi, We have a directory /oracle/UD1/sapdata1,since sapdata1 had no space we created a directory under /oracle/UD1/orarch/sapdata1 and soft linked /oracle/UD1/sapdata1 to /oracle/UD1/orarch/sapdata1 . Is there any way I can see if the files are being actually written to... (4 Replies)
Discussion started by: buddy1
4 Replies

6. UNIX for Dummies Questions & Answers

Unzip & Env Path Name

I need to download team foundation server on Unix (4 simple instructions below), but I am stuck.. I am newbie Unix user, so please be patient. -cd /home/Myname/Downloads, Unzip -Unzipped to /home/Myname/DestFolder -cd DestFolder, type tf -help, works there - outside this folder, doesn't... (1 Reply)
Discussion started by: software2007
1 Replies

7. UNIX for Dummies Questions & Answers

How to identify a link whether it is a Hardlink or Softlink

i am new to UNIX environment please tell me how to identify a link whether it is a Hardlink or Softlink ? what is the command? thank you all .......:o:o (2 Replies)
Discussion started by: sasith90
2 Replies

8. Solaris

solaris 10- cant create softlink

bash-3.00# ln -s /lib /usr/lib ln: cannot create /usr/lib/lib: File exists bash-3.00# (4 Replies)
Discussion started by: incredible
4 Replies

9. Shell Programming and Scripting

Representing dir path for copy through env variable

Hello , i am on linux, and im trying to figure out why my cp command cant copy one file. I am trying to use variable in which i stored path to location where is file i wish to copy. $ echo $ORA_ALERT_LOG /u01/app/oracle/diag/rdbms/ring11/ring11/trace $ $ $ pwd /home/oracle $ cp -p... (2 Replies)
Discussion started by: tonijel
2 Replies

10. Shell Programming and Scripting

Adding command line env in cron env

Hello friends, i run two scripts manually & they work. i run them in cron & they don work. how to match the two env's 1.command line env 2.cron env i would like cron to use command line env. Thanks & Regards Abhijeet (1 Reply)
Discussion started by: abhijeetkul
1 Replies
Login or Register to Ask a Question