Linux commandline lessons

  • df -h tells you about your devices’ storage usage
  • du -sh <directory> gives you an idea how much space a directory is using
  • Logfiles are your friends, until one day they become your enemy and eat up all storage
  • To truncate a file (remove contents), just use >/var/log/log.file

jQuery magicpreview plugin

With our regular search for useful jQuery plugins, the magicpreview plugin should be useful for real–time manipulation of the DOM. One real–world use for this is for comment previews and similar things. Nice.