• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • How to unlink/delete a symbolic in Linux

    In my earlier post I had shown you in detail the steps to create a soft link and hard link in Linux. If you have missed it you can read about the same in below link
    How to create Soft Link (Symlink) and Hard Link in Linux

    In this post I will show you simple steps to unlink the symlink

    Suppose you have a link as shown below
    # ls -l
    drwxr-xr-x.  2 root root  4096 Sep 12 13:55 Desktop
    lrwxrwxrwx   1 root root     7 Jan 10 23:34
    shortcut -> Desktop

    Here shortcut is a symlink for Desktop

    Method 1
    NOTE: Always remember you have to remove the shortcut link which is created and not the original directory.
    # rm shortcut

    NOTE: symlink is the one which you will see in blue colour

    Method 2
    # unlink shortcut/
    unlink: cannot unlink `shortcut/': Not a directory

    Why am I getting this error?

    It is because there is a forward slash at the end of the link which should not be there as it is a link and not a directory so you need to specify only the link which has to be removed/deleted.

    Let us try again
    # unlink shortcut

    Follow the below links for more tutorials

    What is the difference between DNS A record and CNAME record?
    Tutorial for Monitoring Tools SAR and KSAR with examples in Linux
    How to configure Samba 4 Secondary Domain Controller
    How to configure a caching only bind DNS server in Red Hat Linux
    Iptables rules to allow/block ssh incoming/outgoing connection in Linux
    Iptables rules to block/allow icmp ping request in Linux
    How to secure Apache web server in Linux using password (.htaccess)
    How to register Red Hat Linux with RHN (Red Hat Network )
    Red hat Enterprise Linux 5.5 Installation Guide (Screenshots)
    15 tips to enhance security of your Linux machine
    Why is Linux more secure than windows and any other OS
    What is the difference between "su" and "su -" in Linux?
    What is swappiness and how do we change its value?
    How to log iptables messages in different log file
    What is virtual memory, paging and swap space?

    Deepak Prasad

    Deepak Prasad is an anonymous techie and an author who is still trying to survive in this IT generation with very little knowledge he has on Linux/Unix, VMware, SAN Storage, Automation, networking etc

    You can follow him on Facebook or Google+

    Do you also have something to share here?

    Become an author and be a part of our GoLinuxHub Team, Click here for more information
    How to unlink/delete a symbolic in Linux How to unlink/delete a symbolic in Linux Reviewed by Deepak Prasad on Friday, January 10, 2014 Rating: 5

    No comments:

    Powered by Blogger.