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

One Comment

Comments are closed.