{"id":5166,"date":"2019-01-31T21:22:45","date_gmt":"2019-01-31T20:22:45","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=5166"},"modified":"2019-01-31T21:22:45","modified_gmt":"2019-01-31T20:22:45","slug":"home-directory-is-it-okay-to-delete-cache-ask-ubuntu","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2019\/01\/31\/home-directory-is-it-okay-to-delete-cache-ask-ubuntu\/","title":{"rendered":"home directory &#8211; Is it okay to delete ~\/.cache? &#8211; Ask Ubuntu"},"content":{"rendered":"<p><em><a href=\"https:\/\/askubuntu.com\/questions\/102046\/is-it-okay-to-delete-cache\">home directory &#8211; Is it okay to delete ~\/.cache? &#8211; Ask Ubuntu<\/a><\/em><\/p>\n<blockquote><p>This will delete everything in your .cache that was last accessed more than a year ago<\/p>\n<pre><code class=\"\" data-line=\"\">find ~\/.cache\/ -type f -atime +365 -delete\n<\/code><\/pre>\n<p>If you&#8217;re nervous about running it, this will show you what&#8217;s going to be deleted:<\/p>\n<pre><code class=\"\" data-line=\"\">find ~\/.cache\/ -depth -type f -atime +365 \n<\/code><\/pre>\n<p>I&#8217;m using &#8216;access time&#8217; for that, you could also try &#8216;creation time&#8217; by using -ctime (although I&#8217;ve found many cache files which are years old but still accessed). Thanks to @n33rma for the edit suggestion.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">home directory &#8211; Is it okay to delete ~\/.cache? &#8211; Ask Ubuntu This will delete everything in your .cache that was last accessed more than a year ago find ~\/.cache\/ -type f -atime +365 -delete If you&#8217;re nervous about running it, this will show you what&#8217;s going to be deleted: find ~\/.cache\/ -depth -type f&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2019\/01\/31\/home-directory-is-it-okay-to-delete-cache-ask-ubuntu\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72,13],"tags":[],"class_list":["post-5166","post","type-post","status-publish","format-standard","hentry","category-documentations","category-gnulinux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-1lk","jetpack-related-posts":[{"id":9692,"url":"https:\/\/monodes.com\/predaelli\/2022\/10\/03\/home-directory-is-it-okay-to-delete-the-cache-folder-ask-ubuntu\/","url_meta":{"origin":5166,"position":0},"title":"home directory &#8211; Is it okay to delete the ~\/.cache folder? &#8211; Ask Ubuntu","author":"Paolo Redaelli","date":"2022-10-03","format":"quote","excerpt":"This will delete everything in your .cache that was last accessed more than a year ago find ~\/.cache\/ -type f -atime +365 -delete Source: home directory - Is it okay to delete the ~\/.cache folder? - Ask Ubuntu","rel":"","context":"In &quot;Tricks&quot;","block_context":{"text":"Tricks","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/tricks\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1254,"url":"https:\/\/monodes.com\/predaelli\/2016\/04\/06\/aptyum-cheatlist\/","url_meta":{"origin":5166,"position":1},"title":"apt\/yum cheatlist","author":"Paolo Redaelli","date":"2016-04-06","format":false,"excerpt":"apt-cache se I'm actually doing the reverse: SwitchingToUbuntu\/FromLinux\/RedHatEnterpriseLinuxAndFedora\u00a0 but it's easy as a quick Ctrl-F or \/ Table of Equivalent Commands Below is a table of equivalent commands for package management on both Ubuntu\/Debian and Red Hat\/Fedora systems. Task Red Hat\/Fedora Ubuntu Adding, Removing and Upgrading Packages Refresh list of\u2026","rel":"","context":"In &quot;Debian&quot;","block_context":{"text":"Debian","link":"https:\/\/monodes.com\/predaelli\/category\/debian\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8053,"url":"https:\/\/monodes.com\/predaelli\/2021\/01\/13\/lvm-cache-su-ssd\/","url_meta":{"origin":5166,"position":2},"title":"LVM Cache su SSD","author":"Paolo Redaelli","date":"2021-01-13","format":false,"excerpt":"24 Maggio 2020 giomba ha pubblicato la guida LVM Cache su SSD. La mia macchina principale \u00e8 configurata esattamente come la sua all'inizio, anche se io ne sono abbastanza soddisfatto. In fin dei conti \u00e8 un towerone pensato per poter essere aggiornato a pezzi man mano. Per\u00f2 l'idea di mettere\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2021\/01\/lvmcache4-2.png?fit=477%2C221&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1112,"url":"https:\/\/monodes.com\/predaelli\/2016\/03\/09\/flush-the-cache-luke\/","url_meta":{"origin":5166,"position":3},"title":"Flush the cache, Luke","author":"Paolo Redaelli","date":"2016-03-09","format":false,"excerpt":"I have been writing about this annoying bug a month ago: I've solved it. I solved it flushing the browser cache. So always remember to check everything even the obvious and stick to the fundamentals. \u00a0","rel":"","context":"In &quot;Mood&quot;","block_context":{"text":"Mood","link":"https:\/\/monodes.com\/predaelli\/category\/mood\/"},"img":{"alt_text":"Instead I get this (working) links","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/01\/press-this-bug.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/01\/press-this-bug.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/01\/press-this-bug.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/01\/press-this-bug.png?resize=700%2C400 2x"},"classes":[]},{"id":9252,"url":"https:\/\/monodes.com\/predaelli\/2022\/04\/07\/hyperfine\/","url_meta":{"origin":5166,"position":4},"title":"hyperfine","author":"Paolo Redaelli","date":"2022-04-07","format":false,"excerpt":"hyperfine A command-line benchmarking tool. Demo: Benchmarking fd and find: Features Statistical analysis across multiple runs.Support for arbitrary shell commands.Constant feedback about the benchmark progress and current estimates.Warmup runs can be executed before the actual benchmark.Cache-clearing commands can be set up before each timing run.Statistical outlier detection to detect interference\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/monodes.com\/predaelli\/category\/software\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":15114,"url":"https:\/\/monodes.com\/predaelli\/2026\/02\/21\/manually-updating-font-list\/","url_meta":{"origin":5166,"position":5},"title":"Manually updating font list","author":"Paolo Redaelli","date":"2026-02-21","format":false,"excerpt":"This is not needed if you use high-level facilities, but in case of manual, low level manipulation of fonts repositories in your machine just issue fc-cache -f -v to update the available font lists. I looked for it far too many times; taken https:\/\/askubuntu.com\/questions\/3697\/how-do-i-install-fonts","rel":"","context":"In &quot;Tricks&quot;","block_context":{"text":"Tricks","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/tricks\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2026\/01\/fonts-index__html.jpg?fit=1200%2C772&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2026\/01\/fonts-index__html.jpg?fit=1200%2C772&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2026\/01\/fonts-index__html.jpg?fit=1200%2C772&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2026\/01\/fonts-index__html.jpg?fit=1200%2C772&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2026\/01\/fonts-index__html.jpg?fit=1200%2C772&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/5166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=5166"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/5166\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=5166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=5166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=5166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}