Kim Scarborough > things I do > computer nerd stuff > tips & cheatsheets > misc. Unix
  • Remove cores:
    find . -name core -exec rm {} \;
  • Remove dangling symlinks (BASH):
    find . -type l | while read XX ; do if [ ! -e "${XX}" ] ; then rm -v ${XX} ; fi ; done
  • Find fastest mirror:
    netselect -v -s20 -t20 `cat FILE`
    (where FILE is a space-separated list of URLs)
  • Set up X11 forwarding through sudo:
    sudo xauth add $(xauth list | grep `hostname`)