top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to delete a symbolic link in Solaris ?

+3 votes
2,579 views

How to delete a symbolic link in Solaris ?

"ln -s" command is working fine to add a symbolic link. But how the symbolic link can be deleted ?
I tried like this, but its not working

ulink abc.xml
ulink: not found

I tried unlink command , but got the following message " command not found"

posted Jul 10, 2015 by Nithin Kp

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
I think one of these two should work --
rm linkname
unlink linkname

Please comment if it does not...

1 Answer

+1 vote

Soft link is the shortcut or alias name for a file or directory. It is just access path or name for an actual file or directory. So when you remove the soft link it will not affect the actual files present in the directory. Method is same for solaris and linux (actually for all unix flavors)

Creation of Soft link:

ln –s <actual file/directory name> <link name>
Example
ln -s /etc/httpd/conf/httpd.conf  /home/myhome/httpd.conf

How to remove a soft link?

unlink <link name>
rm <link name>
Example
rm /home/myhome/httpd.conf
answer Jul 10, 2015 by Kuldeep Apte
Similar Questions
+1 vote

I have a perl script test.pl. I want to create desktop shortcut. While I click on this shortcut icon it will run my perl script and keep the terminal open.

I have tried the command

ln -s test.pl ~/Desktop/abc

while I click on this abc Icon from my desktop. It run and same time the terminal exit. Could you please help here?

My requirement is:

I want to create desktop shortcut for particular perl program. While I click on this icon from desktop, it should run and keep the terminal open.

+1 vote

I tried to compile git 2.4.3 on Solaris 10. I used the following configuration:

$ ./configure --without-iconv

$ grep -i iconv config.status
ac_cs_config="'--without-iconv'"
 set X /bin/bash './configure' '--without-iconv'
$ac_configure_extra_args --no-create --no-recursion
OLD_ICONV=UnfortunatelyYes

But when I try to compile it, I get an error that libiconv is missing:

 LINK git-credential-store
Undefined first referenced
 symbol in file
libintl_gettext libgit.a(lockfile.o)
libiconv_close libgit.a(utf8.o)
libiconv_open libgit.a(utf8.o)
libintl_ngettext libgit.a(date.o)
libiconv libgit.a(utf8.o)
ld: fatal: symbol referencing errors. No output written to git-credential-store
collect2: ld returned 1 exit status
gmake: *** [git-credential-store] Error 1

How can I work around this?

+1 vote

I was installing bugzilla on Solaris machine and getting below error

./testserver.pl http://localhost
TEST-OK Webserver is running under group id in $webservergroup.
TEST-OK Got padlock picture.
TEST-FAILED Webserver is fetching rather than executing CGI files.
Check the AddHandler statement in your httpd.conf file.

I checked httpd.conf and I have added AddHandler cgi-script .cgi in this file. But not able to get through. Could you help me please.

+1 vote

I'm in the middle of a hardware upgrade. The application expert has on our project work list "copy /opt/tomcat/* from old machine to new machine.

The old machine is a Sun V240, running Solaris 9 and the New machine is an Oracle (Sun) T4 server running Solaris 10. Tomcat version is Tomcat 6.

Can we do this? will it run? It seems to be a Java based product and it stands to reason that if the JDK is the same it would be fine. I'm worried about any C code compiled for Solaris 9. Why should we NOT do this ?

...