<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 4, 2024 at 6:25 PM joe--- via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org">plug-discuss@lists.phxlinux.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">How crucial are the thousands of cache<br>
files cluttering up our computers?<br></blockquote><div><br></div><div class="gmail_default" style="font-family:monospace">To my knowledge, they are not crucial.</div><div class="gmail_default" style="font-family:monospace">I delete them before a full back of my $HOME and have not seen any application breakage.</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">I have my shell script here for you to modify to fit your needs.</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">HTH,</div><div class="gmail_default" style="font-family:monospace">--</div><div class="gmail_default" style="font-family:monospace">Arun Khan</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace"><begin bash script></div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">#!/bin/bash<br><br>#<br># Script to clean up files in [Cc]ache [Tt]rash in user's home directories<br>#<br><br>[ ! -d $HOME ] && echo "There is no HOME dir for $USER" && return 1<br><br>TMPFILE=/tmp/cache_n_trash_dirs$$<br><br># define directory strings here<br>dir_string1="\( -type d -iname '*cache*' \)"<br>dir_string2="\( -type d -iname '*trash*' \)"<br>dir_string3="\( -type d -iname '.local' \)"<br><br>find $HOME \( -type d -iname '*cache*' \) -o \( -type d -iname '*trash*' \) | \<br>sed -e 's/^/"/' -e 's/$/\/"/' | sed -e 's/^/rm -fr /' > $TMPFILE<br><br># add thumbnails directory to the list<br>echo "rm -fr $HOME/.thumbnails/* " >> $TMPFILE<br><br>cat << EOF<br><br>Temporary shell script file written in $TMPFILE;<br>Please execute the following line:<br><br>bash $TMPFILE<br><br>EOF<br></div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace"><begin bash script></div></div></div>