Ubuntu – How to remove symbolic link

symbolic-link

I was trying to create this symbolic link:

sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin

but I accidentally typed:

sudo ln -s /usr/share/php,yad,in /var/www/phpmyadmin

So now I want to correct it but it says symbolic link already exist.

Best Answer

You can use rm to delete the symlink.

Example:

-rw-rw-r-- 1 2014-01-02 09:21 tmo
lrwxrwxrwx 1 2014-01-02 09:21 tmo2 -> tmo

Then ...

 rm tmo2

will remove the symlink.

Related Question