Find broken symlinks - easy way

Need to find any broken Symlinks on your server? Here is a handy command:
for i in `find /var/www/html -type l`; do [ -e $i ] || echo $i is broken; done


Bookmark and Share

No comments

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options