Remove all symlinks in a directory


/ Published in: Bash
Save to your folder(s)

Remove all symlinks in a directory, but leave the target files.


Copy this code and paste it in your HTML
  1. find . -maxdepth 1 -type l -exec rm -f {} \;

URL: http://www.linuxquestions.org/questions/linux-general-1/script-command-to-delete-all-symlinks-from-a-directory-302124/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.