{"id":2685,"date":"2024-11-26T19:02:25","date_gmt":"2024-11-27T00:02:25","guid":{"rendered":"http:\/\/sudlatnid.com\/?p=2685"},"modified":"2024-11-26T19:02:25","modified_gmt":"2024-11-27T00:02:25","slug":"6-commands-to-clean-up-your-ubuntu-system-from-the-terminal","status":"publish","type":"post","link":"https:\/\/www.sudlatnid.com\/?p=2685","title":{"rendered":"6 Commands to Clean Up Your Ubuntu System From the Terminal"},"content":{"rendered":"<p>Keeping your computer free of digital clutter is an important part of maintenance, while also making sure you always have space for new files and programs. Here are some simple commands that will let you clean up your Ubuntu system from the terminal, no GUI required\u2014well, with one exception.<\/p>\n<p>Note that in most cases, these commands will work on any Debian-based system. I tested them on both an Ubuntu install as well as a Linux Mint machine. On both systems I gained a lot of space, a lot more than I expected, in fact.<\/p>\n<h2 id=\"uninstall-programs\"><span class=\"item-num\">1<\/span>Uninstall Programs<\/h2>\n<p>The first place to start when cleaning up your Ubuntu system is to check the programs you have installed and then remove them. To do so, you\u2019ll need to get a list of everything installed on your system. There are two terminal commands for this, either:<\/p>\n<pre>dpkg --list<\/pre>\n<p>Or alternatively this one:<\/p>\n<pre>apt list --installed<\/pre>\n<p>However, I\u2019m not a fan of this approach as you\u2019ll get massive lists you\u2019ll need to scroll through manually, and they include dependencies you may not know the use of. Unless you really know what you\u2019re doing, it\u2019s better to go to your list of installed apps in your GUI. Depending on the system you\u2019re rocking, there are different places for it, but it\u2019s in your software center. Below is what it looks like in Linux Mint.<\/p>\n<div class=\"body-img landscape \">\n<div class=\"responsive-img image-expandable img-article-item\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/mint-software-manager.png\" data-modal-id=\"single-image-modal\" data-modal-container-id=\"single-image-modal-container\" data-img-caption=\"&quot;&quot;\">\n<figure><picture><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/mint-software-manager.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" media=\"(min-width: 1024px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/mint-software-manager.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/mint-software-manager.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" media=\"(min-width: 768px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/mint-software-manager.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/mint-software-manager.png?q=70&amp;fit=crop&amp;w=800&amp;dpr=1\" media=\"(min-width: 481px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/mint-software-manager.png?q=70&amp;fit=crop&amp;w=800&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/mint-software-manager.png?q=70&amp;fit=crop&amp;w=500&amp;dpr=1\" media=\"(min-width: 0px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/mint-software-manager.png?q=70&amp;fit=crop&amp;w=500&amp;dpr=1\" \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/mint-software-manager.png\" alt=\"Picture of a list of installed programs in Linux Mint.\" width=\"700\" height=\"588\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/mint-software-manager.png\" \/><\/picture><\/figure>\n<\/div>\n<\/div>\n<p>To remove programs, just either do so via the software center, or enter the following in the terminal:<\/p>\n<pre>sudo apt-get remove program-name<\/pre>\n<p>Note that you can string multiple programs together in one go, just add the names without any commas or anything. Check out our full article on\u00a0<a href=\"https:\/\/www.howtogeek.com\/229699\/how-to-uninstall-software-using-the-command-line-in-linux\/\" target=\"_blank\" rel=\"noopener\">how to uninstall software on Ubuntu<\/a>\u00a0if you\u2019d like to know more details.<\/p>\n<div class=\"ad-odd\"><\/div>\n<h2 id=\"clean-up-the-apt-cache\"><span class=\"item-num\">2<\/span>Clean Up the APT Cache<\/h2>\n<p>Most Debian-based distros, including Ubuntu, use APT to manage programs, something you can read more about in our article on\u00a0<a href=\"https:\/\/www.howtogeek.com\/63997\/how-to-install-programs-in-ubuntu-in-the-command-line\/\" target=\"_blank\" rel=\"noopener\">how to use apt-get<\/a>. However, APT keeps a cache of downloaded files and doesn\u2019t clean it out. If you\u2019ve been using your system a while, it can fill up a lot, so you\u2019ll need to clean it out and get back some disk space.<\/p>\n<p>First, let\u2019s figure out how much space the cache is using the \u201cdu\u201d command (read more about this in our article on\u00a0<a href=\"https:\/\/www.howtogeek.com\/409611\/how-to-view-free-disk-space-and-disk-usage-from-the-linux-terminal\/\" target=\"_blank\" rel=\"noopener\">viewing free disk space in Linux<\/a>). We also need to add the location of the cache, which is \/var\/cache\/apt by default.<\/p>\n<pre>sudo du -sh \/var\/cache\/apt<\/pre>\n<p>You\u2019ll get a brief message displaying how much space the directory is taking up.<\/p>\n<div class=\"body-img landscape \">\n<div class=\"responsive-img image-expandable img-article-item\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/apt-cache-size.png\" data-modal-id=\"single-image-modal\" data-modal-container-id=\"single-image-modal-container\" data-img-caption=\"&quot;&quot;\">\n<figure><picture><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/apt-cache-size.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" media=\"(min-width: 1024px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/apt-cache-size.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/apt-cache-size.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" media=\"(min-width: 768px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/apt-cache-size.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/apt-cache-size.png?q=70&amp;fit=crop&amp;w=800&amp;dpr=1\" media=\"(min-width: 481px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/apt-cache-size.png?q=70&amp;fit=crop&amp;w=800&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/apt-cache-size.png?q=70&amp;fit=crop&amp;w=500&amp;dpr=1\" media=\"(min-width: 0px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/apt-cache-size.png?q=70&amp;fit=crop&amp;w=500&amp;dpr=1\" \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/apt-cache-size.png\" alt=\"Picture of the terminal output after querying app cache size.\" width=\"654\" height=\"438\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/apt-cache-size.png\" \/><\/picture><\/figure>\n<\/div>\n<\/div>\n<p>Almost 600MB in my case, which is worth cleaning up. To do so, enter the following command:<\/p>\n<pre>sudo apt-get clean<\/pre>\n<p>In my case, this left me with just 44KB of files left in the cache, which is a much better result.<\/p>\n<div class=\"body-img landscape \">\n<div class=\"responsive-img image-expandable img-article-item\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-clean-cache.png\" data-modal-id=\"single-image-modal\" data-modal-container-id=\"single-image-modal-container\" data-img-caption=\"&quot;&quot;\">\n<figure><picture><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-clean-cache.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" media=\"(min-width: 1024px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-clean-cache.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-clean-cache.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" media=\"(min-width: 768px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-clean-cache.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-clean-cache.png?q=70&amp;fit=crop&amp;w=800&amp;dpr=1\" media=\"(min-width: 481px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-clean-cache.png?q=70&amp;fit=crop&amp;w=800&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-clean-cache.png?q=70&amp;fit=crop&amp;w=500&amp;dpr=1\" media=\"(min-width: 0px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-clean-cache.png?q=70&amp;fit=crop&amp;w=500&amp;dpr=1\" \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-clean-cache.png\" alt=\"Picture of the terminal output when cleaning the Ubuntu cache.\" width=\"654\" height=\"438\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-clean-cache.png\" \/><\/picture><\/figure>\n<\/div>\n<\/div>\n<p>If you want, you can also\u00a0<a href=\"https:\/\/www.howtogeek.com\/28502\/how-to-free-up-a-lot-of-disk-space-on-ubuntu-linux-by-deleting-cached-package-files\/\" target=\"_blank\" rel=\"noopener\">disable automatic package caching<\/a>\u00a0so you don\u2019t have to deal with this issue again.<\/p>\n<div class=\"ad-even\"><\/div>\n<h2 id=\"remove-packages-you-no-longer-need\"><span class=\"item-num\">3<\/span>Remove Packages You No Longer Need<\/h2>\n<p>One of the biggest ways in which I was losing space was by not removing unneeded packages, remainders from when I installed a program and then didn\u2019t get rid of the installer. Ubuntu offers a very simple command that cleans up all these unnecessary files:<\/p>\n<pre>sudo apt-get autoremove<\/pre>\n<p>This cleans up installers, as well as all kinds of package files. Some of these, like kernel updates, are massive, and if you haven\u2019t cleaned up in a while this can save you several gigabytes of hard drive space. For example, I created almost 1GB of space on my Mint install.<\/p>\n<div class=\"body-img landscape \">\n<div class=\"responsive-img image-expandable img-article-item\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/autoremove-result.png\" data-modal-id=\"single-image-modal\" data-modal-container-id=\"single-image-modal-container\" data-img-caption=\"&quot;&quot;\">\n<figure><picture><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/autoremove-result.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" media=\"(min-width: 1024px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/autoremove-result.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/autoremove-result.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" media=\"(min-width: 768px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/autoremove-result.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/autoremove-result.png?q=70&amp;fit=crop&amp;w=800&amp;dpr=1\" media=\"(min-width: 481px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/autoremove-result.png?q=70&amp;fit=crop&amp;w=800&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/autoremove-result.png?q=70&amp;fit=crop&amp;w=500&amp;dpr=1\" media=\"(min-width: 0px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/autoremove-result.png?q=70&amp;fit=crop&amp;w=500&amp;dpr=1\" \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/autoremove-result.png\" alt=\"Picture of the terminal output when using autoremove in Ubuntu.\" width=\"654\" height=\"438\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/autoremove-result.png\" \/><\/picture><\/figure>\n<\/div>\n<\/div>\n<div class=\"ad-odd\"><\/div>\n<h2 id=\"clean-up-journal-logs\"><span class=\"item-num\">4<\/span>Clean Up Journal Logs<\/h2>\n<p>Like any computer system, Ubuntu logs what happens on the system. All the actions you undertake, connections made, and stuff like that is stored in logs and then never deleted. These are mostly stored in simple text files, but because there are so many, the cumulative effect is impressive.<\/p>\n<p>You can run the following command to find out how much space your logs are taking up:<\/p>\n<pre>journalctl --disk-usage<\/pre>\n<p>I did, and I saw mine took up over 3GB, which is too much. To remove this, the easiest command is the following, where the number denotes how many days back you want to go. For the sake of caution, I went with a week.<\/p>\n<pre>sudo journalctl --vacuum-time=7d<\/pre>\n<p>This cleaned up almost the full 3.3GB, leaving me with a much more manageable 24MB.<\/p>\n<div class=\"body-img landscape \">\n<div class=\"responsive-img image-expandable img-article-item\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-vacuum-journals.png\" data-modal-id=\"single-image-modal\" data-modal-container-id=\"single-image-modal-container\" data-img-caption=\"&quot;&quot;\">\n<figure><picture><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-vacuum-journals.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" media=\"(min-width: 1024px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-vacuum-journals.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-vacuum-journals.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" media=\"(min-width: 768px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-vacuum-journals.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-vacuum-journals.png?q=70&amp;fit=crop&amp;w=800&amp;dpr=1\" media=\"(min-width: 481px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-vacuum-journals.png?q=70&amp;fit=crop&amp;w=800&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-vacuum-journals.png?q=70&amp;fit=crop&amp;w=500&amp;dpr=1\" media=\"(min-width: 0px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-vacuum-journals.png?q=70&amp;fit=crop&amp;w=500&amp;dpr=1\" \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-vacuum-journals.png\" alt=\"Picture of the terminal output after vacuuming journals.\" width=\"654\" height=\"132\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/ubuntu-vacuum-journals.png\" \/><\/picture><\/figure>\n<\/div>\n<\/div>\n<div class=\"ad-even\"><\/div>\n<h2 id=\"clear-your-thumbnail-cache\"><span class=\"item-num\">5<\/span>Clear Your Thumbnail Cache<\/h2>\n<p>Any time you add a picture to Ubuntu, it creates a thumbnail for easy viewing in your file manager. However, these thumbnails survive even after the images they\u2019re based on are removed, meaning they\u2019re yet another useless class of files taking up space on your system. To find out exactly how much, run the following command, which like before features the \u201cdu\u201d command.<\/p>\n<pre>du -sh ~\/.cache\/thumbnails<\/pre>\n<p>The dot before \u201ccache\u201d denotes this is a\u00a0<a href=\"https:\/\/www.howtogeek.com\/the-hidden-files-in-your-linux-home-directory-explained\/\" target=\"_blank\" rel=\"noopener\">hidden directory<\/a>, though that won\u2019t affect the way you interact with it.<\/p>\n<p>In my case, the directory had over 300MB worth of files in it, meaning it needed to be cleaned out. The best way to do this is with the following command.<\/p>\n<pre>rm -rf ~\/.cache\/thumbnails\/*<\/pre>\n<p>I then rechecked the size of the directory and found it was a much more palatable 4KB.<\/p>\n<div class=\"body-img landscape \">\n<div class=\"responsive-img image-expandable img-article-item\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/clearing-thumbnails-ubuntu.png\" data-modal-id=\"single-image-modal\" data-modal-container-id=\"single-image-modal-container\" data-img-caption=\"&quot;&quot;\">\n<figure><picture><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/clearing-thumbnails-ubuntu.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" media=\"(min-width: 1024px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/clearing-thumbnails-ubuntu.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/clearing-thumbnails-ubuntu.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" media=\"(min-width: 768px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/clearing-thumbnails-ubuntu.png?q=70&amp;fit=crop&amp;w=825&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/clearing-thumbnails-ubuntu.png?q=70&amp;fit=crop&amp;w=800&amp;dpr=1\" media=\"(min-width: 481px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/clearing-thumbnails-ubuntu.png?q=70&amp;fit=crop&amp;w=800&amp;dpr=1\" \/><source srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/clearing-thumbnails-ubuntu.png?q=70&amp;fit=crop&amp;w=500&amp;dpr=1\" media=\"(min-width: 0px)\" data-srcset=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/clearing-thumbnails-ubuntu.png?q=70&amp;fit=crop&amp;w=500&amp;dpr=1\" \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/clearing-thumbnails-ubuntu.png\" alt=\"Picture of the terminal output when clearing Ubuntu thumbnails.\" width=\"654\" height=\"438\" data-img-url=\"https:\/\/static1.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/clearing-thumbnails-ubuntu.png\" \/><\/picture><\/figure>\n<\/div>\n<\/div>\n<div class=\"ad-odd\"><\/div>\n<h2 id=\"remove-duplicate-files\"><span class=\"item-num\">6<\/span>Remove Duplicate Files<\/h2>\n<p>Finally, you also have the option of finding and deleting duplicate files. Sadly, though, Ubuntu doesn\u2019t have built-in tools for this. Instead, I recommend you read our article on\u00a0<a href=\"https:\/\/www.howtogeek.com\/201140\/how-to-find-and-remove-duplicate-files-on-linux\/\" target=\"_blank\" rel=\"noopener\">how to find and remove duplicate files<\/a>\u00a0on Linux, which has several ways in which you can do this.<\/p>\n<p>I followed the instructions in our article and was able to remove almost 500MB of duplicate files which had taken up residence on my hard drive, which makes a huge difference.<\/p>\n<hr \/>\n<p>Using any or all of these tips, you can easily free up several gigabytes of space on your Ubuntu system. If you specifically need more space to speed up booting your system, check out our guide on\u00a0<a href=\"https:\/\/www.howtogeek.com\/how-to-safely-free-up-space-in-boot-partition-on-ubuntu\/\" target=\"_blank\" rel=\"noopener\">how to free up space on your Linux boot partition<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Keeping your computer free of digital clutter is an important part of maintenance, while also making sure you always have space for new files and programs. Here are some simple commands that will let you&hellip;<\/p>\n<p><a class=\"excerpt-readmore\" href=\"https:\/\/www.sudlatnid.com\/?p=2685\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":2686,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-2685","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-ubuntu-lubuntu-linuxmint","odd"],"jetpack_featured_media_url":"https:\/\/www.sudlatnid.com\/wp-content\/uploads\/2024\/11\/6-Commands-to-Clean-Up-Your-Ubuntu-System-From-the-Terminal.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/posts\/2685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2685"}],"version-history":[{"count":1,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/posts\/2685\/revisions"}],"predecessor-version":[{"id":2687,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/posts\/2685\/revisions\/2687"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/media\/2686"}],"wp:attachment":[{"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}