Home / Linux / Unlink or Remove a Symbolic link in Linux

Unlink or Remove a Symbolic link in Linux

How to unlink or remove a symbolic link in linux that was created with “ln” command

Use the unlink command

To unlink a symbolic link file :

# unlink symbolic_link_file

To unlink a symbolic link to a directory :

# unlink symbolic_link_dir

When unlinking a directory make sure that you do not include the trailing forward slash:


# unlink /home/username/public_html/


# unlink /home/username/public_html

About v.shakya

I am V.Shakya, Freelance PHP Programmer. I like to share my ideas, views and knowledge to all of you who come across my website. I am young, enthusiastic, highly motivated and self disciplined person. I completed my studies in Master of Computer Application and currently giving my technical expertise to one of the Big IT company. I have more than Ten years of experience in vast field of Programming , Designing and Development of websites and various software's.

Check Also

How to Change Hostname in centos

$ vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=newHostName and: $ vi /etc/hosts newHostName localhost localhost.localdomain localhost4 …

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.