solaris 10- cant create softlink


 
Thread Tools Search this Thread
Operating Systems Solaris solaris 10- cant create softlink
# 1  
Old 06-26-2009
solaris 10- cant create softlink

bash-3.00# ln -s /lib /usr/lib
ln: cannot create /usr/lib/lib: File exists
bash-3.00#
# 2  
Old 06-26-2009
Which means there is a lib directory inside the /usr/lib as lib .
# 3  
Old 06-26-2009
No, it means that the destination directory /usr/lib exists.

Code:
If /lib does not exist as any type of file and you want to create the soft link.

lr-xr-xr-t   1 root       sys              8 May  7  2003 /lib -> /usr/lib

On most unix systems this soft link exists already.

The command is:

ln -s /usr/lib /lib

# 4  
Old 06-26-2009
Quote:
Originally Posted by methyl
On most unix systems this soft link exists already.

The command is:

ln -s /usr/lib /lib
That's not true for Solaris 10. That's why I pointed out that error
# 5  
Old 06-26-2009
There is no error but yours.
There are already both /lib and /usr/lib directories under Solaris with different contents.
What are you trying to achieve ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Solaris

Not able to create a link in /etc/rc3.d in Solaris 10

HI I am using solaris 10.We are doing some failover testing and checking whether services are starting up when we reboot the server. As part of process i have moved scripts to /etc/init.d directory and trying to create a link /etc/rc3.d like this. But strangely it is giving an error... (5 Replies)
Discussion started by: muraliinfy04
5 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. 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

5. Solaris

Problem when I try to create a directory on Solaris 8

Dear Gurus of solaris I have a problem when I try to create a directory when I enter in the /home/ directory and try to create a new directory appear the following error Why If I am root, Can any guru can help me (3 Replies)
Discussion started by: andresguillen
3 Replies

6. 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

7. Solaris

create Virtual NIC in Solaris 10

Hi All, does any body know how to create Virtual NIC in Solaris 10 if any one have good article or reference kindly provide me i try to Google but i didn't find good one (7 Replies)
Discussion started by: jamisux
7 Replies

8. Solaris

Create popup in solaris

Does anyone know how to create a popup window in solaris 8 and later? I want to create and load a popup window when a user logon to a solaris machine and inform the user about some environment changes we have done. Can this easily be done? And if soo how? /Tony (0 Replies)
Discussion started by: tonlu
0 Replies

9. UNIX for Advanced & Expert Users

Create New User in Solaris 10

Dear All, I think this stupid question, but I was search in this forum and I not yet have get specific answer for my problem. I just installed Sun Solaris 10 in my box, and I want add new user, but there is can't work , I try this command useradd -u 1002 -g 102 -d /home/export/heru -s... (7 Replies)
Discussion started by: heru_90
7 Replies

10. UNIX for Dummies Questions & Answers

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... (1 Reply)
Discussion started by: xgr3
1 Replies
Login or Register to Ask a Question