Reclaim disk space on Ubuntu server - Rocketeers app

  [ Rocketeers ](/)   

[Login](https://rocketeersapp.com/login) 

 On this page

 Knowledge
---------

Reclaim disk space on Ubuntu server
===================================

### [\#Hosting](https://rocketeersapp.com/knowledge/hosting)

Your server disk space can clog up very quickly with a lot of unneeded files. Let's find out how to reclaim your precious disk space back.

 Published by [Mark van Eijk](https://rocketeersapp.com/author/mark-van-eijk) on August 24, 2022 · 1 minute read

1. [Shrink log files](#content-shrink-log-files)

There are a few ways that make it possible to reclaim diskspace right away on a server. This is very handy when your server is low on diskspace. Let's dive in!

[\#](#content-shrink-log-files "Permalink")Shrink log files
-----------------------------------------------------------

Using this command, we can shrink logfiles within a specific size. In this example we shrink all system log files to have a maximum size of 500 MB:

 ```
sudo journalctl --vacuum-size=500M

```

**This article will be updated with more examples in the future**

### Subscribe to our newsletter

Do you want to receive regular updates with fresh and exclusive content to learn more about web development, hosting, security and performance? Subscribe now!

  Fill in your email address to receive updates  Subscribe 

#### More in [\#Hosting](https://rocketeersapp.com/knowledge/hosting)

- [How to get top processes with highest memory usage](https://rocketeersapp.com/knowledge/top-processes-memory)
- [How to get top processes with highest CPU usage](https://rocketeersapp.com/knowledge/top-processes-cpu)
- [How to add Swap Space on Ubuntu servers](https://rocketeersapp.com/knowledge/add-swap-space-on-ubuntu)
- [Disable unnecessary and unused PHP versions (FPM pools)](https://rocketeersapp.com/knowledge/disable-unused-php-fpm-pools)
- [How to check Ubuntu version](https://rocketeersapp.com/knowledge/ubuntu-version)
- [Zero downtime deployments using PHP-FPM and nginx](https://rocketeersapp.com/knowledge/zero-downtime-php-deployments)

 [View all 16 articles →](https://rocketeersapp.com/knowledge/hosting)
