<commit_before>---
layout: post
title: Clean My Mac and Free Up Storage
color: '#ffaa36'
excerpt: There's so much you could clean on your Mac to save space. After a couple months with your new Mac, OS X has been building up a big library of logs, backups and other cached data that necessarily isn't important to save.
---

There's so much you could clean on your Mac to save space. After a couple months with your new Mac, OS X has been building up a big library of logs, backups and other cached data that necessarily isn't important to save.

Below are commands listed which with you can run in order to free up storage and speedup your computer. Following these easy steps gave me back 10 GB of storage. Lets fire up the Terminal application and lets go.

## Trash
Emptying the Trash could be painful and take a quite some time to finish, if you haven't done it in a while. This is because your Mac has to index the entire Trash directory while deleting files. Don't worry, there is a better way.

The command below isn't only faster than the normal Empty Trash action, it also empties the Trash on all mounted volumes as well as the main drive.
{% highlight bash %} 
sudo rm -rfv /Volumes/*/.Trashes
sudo rm -rfv ~/.Trash
{% endhighlight %}
 
## System Logs
Apple keeps track of what you're doing by creating log files. These Apple System Logs files slows down your Mac, specially during startup. Remember OS X saves these while you're using your computer. Try to run this command as often as you're emptying the trash.
{% highlight bash %} 
sudo rm -rfv /private/var/log/asl/*.asl
sudo rm -rfv /Library/Logs/DiagnosticReports/*
{% endhighlight %}
 
## iOS Applications
Have you every connected an iOS device to your Mac? If so, iTunes has probably kept a copy of your iOS applications. You don't need those to be saved on your Mac. Remove them all.

{% highlight bash %} 
rm -rfv ~/Music/iTunes/iTunes\ Media/Mobile\ Applications/*
{% endhighlight %}

> Please note that this will remove all backed-up iOS application on your computer. If you're not sure about what you're doing then please be cautious.
<commit_msg>Add info about iOS Software Updates<commit_after>---
layout: post
title: Clean My Mac and Free Up Storage
color: '#ffaa36'
excerpt: There's so much you could clean on your Mac to save space. After a couple months with your new Mac, OS X has been building up a big library of logs, backups and other cached data that necessarily isn't important to save.
---

There's so much you could clean on your Mac to save space. After a couple months with your new Mac, OS X has been building up a big library of logs, backups and other cached data that necessarily isn't important to save.

Below are commands listed which with you can run in order to free up storage and speedup your computer. Following these easy steps gave me back 10 GB of storage. Lets fire up the Terminal application and lets go.

## Trash
Emptying the Trash could be painful and take a quite some time to finish, if you haven't done it in a while. This is because your Mac has to index the entire Trash directory while deleting files. Don't worry, there is a better way.

The command below isn't only faster than the normal Empty Trash action, it also empties the Trash on all mounted volumes as well as the main drive.
{% highlight bash %} 
sudo rm -rfv /Volumes/*/.Trashes
sudo rm -rfv ~/.Trash
{% endhighlight %}
 
## System Logs
Apple keeps track of what you're doing by creating log files. These Apple System Logs files slows down your Mac, specially during startup. Remember OS X saves these while you're using your computer. Try to run this command as often as you're emptying the trash.
{% highlight bash %} 
sudo rm -rfv /private/var/log/asl/*.asl
sudo rm -rfv /Library/Logs/DiagnosticReports/*
{% endhighlight %}
 
## iOS Applications
Have you every connected an iOS device to your Mac? If so, iTunes has probably kept a copy of your iOS applications. You don't need those to be saved on your Mac. Remove them all.

{% highlight bash %} 
rm -rfv ~/Music/iTunes/iTunes\ Media/Mobile\ Applications/*
{% endhighlight %}

> Please note that this will remove all backed-up iOS application on your computer. If you're not sure about what you're doing then please be cautious.

## iOS Software Updates
Whenever you update your iOS device trought iTunes it downloads that entire update locally on your computer. Once you've updated you don't need them anymore.

{% highlight bash %} 
rm -rfv ~/Library/iTunes/iPhone\ Software\ Updates/*
{% endhighlight %}

{'fraction_non_alphanumeric': 0.06007922535211268, 'fraction_numerical': 0.0017605633802816902, 'mean_word_length': 3.9135135135135135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3846748', 'n_tokens_mistral': 1274, 'n_tokens_neox': 1154, 'n_words': 737}