{"id":216922,"date":"2026-02-24T10:00:00","date_gmt":"2026-02-24T15:00:00","guid":{"rendered":"https:\/\/news-you-need.com\/index.php\/2026\/02\/24\/6-commands-to-clean-up-your-ubuntu-system-from-the-terminal\/"},"modified":"2026-02-24T10:20:10","modified_gmt":"2026-02-24T15:20:10","slug":"6-commands-to-clean-up-your-ubuntu-system-from-the-terminal","status":"publish","type":"post","link":"https:\/\/news-you-need.com\/index.php\/2026\/02\/24\/6-commands-to-clean-up-your-ubuntu-system-from-the-terminal\/","title":{"rendered":"6 commands to clean up your Ubuntu system from the terminal"},"content":{"rendered":"<p><a href=\"https:\/\/www.howtogeek.com\/6-commands-to-clean-up-your-ubuntu-system-from-the-terminal\/\">6 commands to clean up your Ubuntu system from the terminal<\/a><\/p>\n<p><a href=\"https:\/\/www.howtogeek.com\/6-commands-to-clean-up-your-ubuntu-system-from-the-terminal\/\">https:\/\/www.howtogeek.com\/6-commands-to-clean-up-your-ubuntu-system-from-the-terminal\/<\/a><\/p>\n<p>Publish Date: <a href=\"publish_date]\">2026-02-24 10:00:00<\/a><\/p>\n<p>Source Domain: <a href=\"www.howtogeek.com\">www.howtogeek.com<\/a><\/p>\n<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\">\n                        Uninstall programs<br \/>\n               <\/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<p>    dpkg &#8211;list     <\/p>\n<p>Or alternatively this one:<\/p>\n<p>    apt list &#8211;installed    <\/p>\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<p>To remove programs, just either do so via the software center, or enter the following in the terminal:<\/p>\n<p>    sudo apt-get&#8230;<br \/>\n<br \/><a href=\"https:\/\/www.howtogeek.com\/6-commands-to-clean-up-your-ubuntu-system-from-the-terminal\/\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>6 commands to clean up your Ubuntu system from the terminal https:\/\/www.howtogeek.com\/6-commands-to-clean-up-your-ubuntu-system-from-the-terminal\/ Publish Date: 2026-02-24&#8230;<\/p>\n","protected":false},"author":1,"featured_media":216923,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/static0.howtogeekimages.com\/wordpress\/wp-content\/uploads\/2024\/11\/terminal-with-a-cleaning-duster-and-the-ubuntu-logo-in-the-background.jpg?w=1600&h=900&fit=crop","fifu_image_alt":"","footnotes":""},"categories":[48],"tags":[91,71,110,79],"class_list":["post-216922","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-debian","tag-linux","tag-linux-mint","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/216922"}],"collection":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/comments?post=216922"}],"version-history":[{"count":1,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/216922\/revisions"}],"predecessor-version":[{"id":216924,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/216922\/revisions\/216924"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/media\/216923"}],"wp:attachment":[{"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/media?parent=216922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/categories?post=216922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/news-you-need.com\/index.php\/wp-json\/wp\/v2\/tags?post=216922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}