How to remove only symbolic links from directories

An easy way to remove symbolic links from directories is this command:

$ find . -type l | xargs rm

I used it to remove the symbolic links from yocto download directory. I configured yocto to use my back directory instead of download everything again!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s