<commit_before># Free up space on your Linux server

You can check your disk space usage with `df`, or particular folder `df -sh`.

You can check inode space usage by `df -i` (if you running caching server with file storage this will be often an issue)


### Delete downloaded packages (.deb) 

E.g.: already installed (and no longer needed)

```sh
sudo apt-get clean
```

### Remove stored archives in your cache 

E.g.:  packages that can not be downloaded anymore, packages are no longer in the repository or that have a newer version in the repository

```sh
sudo apt-get autoclean
```

### Remove packages after uninstalling an application

```sh
sudo apt-get autoremove
```

### Remove old unused kernels

list all your kernels (installed and deinstalled) :

```sh
dpkg --get-selections | grep linux-image
```<commit_msg>current kernel<commit_after># Free up space on your Linux server

You can check your disk space usage with `df`, or particular folder `df -sh`.

You can check inode space usage by `df -i` (if you running caching server with file storage this will be often an issue)


### Delete downloaded packages (.deb) 

E.g.: already installed (and no longer needed)

```sh
sudo apt-get clean
```

### Remove stored archives in your cache 

E.g.:  packages that can not be downloaded anymore, packages are no longer in the repository or that have a newer version in the repository

```sh
sudo apt-get autoclean
```

### Remove packages after uninstalling an application

```sh
sudo apt-get autoremove
```

### Remove old unused kernels

list all your kernels (installed and deinstalled) :

```sh
dpkg --get-selections | grep linux-image
```

your currently used kernel

```
uname -r
```
{'fraction_non_alphanumeric': 0.09229864785420341, 'fraction_numerical': 0.0, 'mean_word_length': 4.080597014925373, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4627449', 'n_tokens_mistral': 516, 'n_tokens_neox': 457, 'n_words': 247}