How to check your disk space quota, and free up Virtual Machine space

KTBYTE students often use a Linux “Virtual Machine” to attend class and share a screen with instructors. However, students typically have a limited space “quota“. If students go over the quota, the machine may no longer allow them to connect. So, it’s important to check your quota every once in a while (we recommend once every two months, or every time you create many new files, especially images/audio/video). How do you check your quota? It’s pretty easy:
  1. Open the Terminal program by either right clicking on the desktop (“Open Terminal Here”), or click on the applications menu at the top left (“Terminal Emulator”).
  2. Type “quota” and press enter. The output may seem intimidating, but don’t panic!
  3. Look at the number under ‘blocks’. That is how much space is currently being used! As the ‘blocks’ number approaches the ‘quota’ and ‘limit’ numbers, you have increased risk of running out of space!
How do you clear up your disk space?
  1. Look at which folders use up space. For example, you can see how many files are in your home folder with the command du -sh ~
  2. If you’re an advanced user, feel free to delete unused files. If you’re not sure whether you can/should delete a file, ask your instructor! Typically, instructors will recommend deleting files such as:
    • Files in the /tmp/ folder on the system
    • Your browser cache, such as ~/.cache/chromium
    • Eclipse metadata
    • Unused data files, such as USACO problem input test cases
    • Old pictures / media
As always, contact KTBYTE support if you have further questions on how to use Linux or your student Virtual Machine

Leave a Reply

Your email address will not be published. Required fields are marked *