Choose style:

Author Topic: [SOLVED] Thumbnail Cache  (Read 153 times)

0 Members and 1 Guest are viewing this topic.

Offline 151tom

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 9
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 (64 Bit)
[SOLVED] Thumbnail Cache
« on: October 02, 2019, 03:53:43 pm »
Hello Peppermint forums,


I was wondering which is the best method to clear the thumbnail cache that gathers over time.

rm -v -f ~/.cache/thumbnails/*/*.png ~/.thumbnails/*/*.png

rm -v -f ~/.cache/thumbnails/*/*/*.png ~/.thumbnails/*/*/*.png

Or

rm -rfv ~/.cache/thumbnails


Thanks
« Last Edit: October 02, 2019, 07:13:39 pm by 151tom »

Offline The Omen

  • Jr. Member
  • **
  • Posts: 76
  • Karma: 10
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 respin
Re: Thumbnail Cache
« Reply #1 on: October 02, 2019, 04:11:11 pm »
Pretty much ALL three will do the job.


Clear the Thumbnail Cache:  These 2 do it in 2 stages:

 
Code: [Select]
rm -v -f ~/.cache/thumbnails/*/*.png ~/.thumbnails/*/*.png
Code: [Select]
 rm -v -f ~/.cache/thumbnails/*/*/*.png ~/.thumbnails/*/*/*.png

The last one here does the entire job: (I am not sure where you came by the extra "v" that you used in your third code on your post but i think it is from "easy Linux" blog.) The one in my "User Submitted Tutorial" is minus the "v" and shows as, "rf",  NOT, "rfv", as you have shown in your previous entry.

   
Code: [Select]
rm -rf ~/.cache/thumbnails

TAKE NOTE: DO NOT DO THIS UNLESS YOU REALLY MEAN IT!!!

The "asterik",  on the fourth entry I made:  (And this is where the "rfv" I think comes into play here):

 
Code: [Select]
 rm -rfv ~/.cache/thumbnails*

This will be the result of this code: You WILL remove the entire cache thumbnail directory with this!!!

 
Code: [Select]
removed directory '/home/The Omen/.cache/thumbnails'
You probably DO NOT want to remove directory.


NOTE: I dislike thumbnails, so i modify the entry for retention days of,  "thumbnails", in "dconf Editor" to zero.

After a few EDITS here, I think?, I have everything hopefully correct.

If im not correct for any reason, I HOPE that the more knowledgeable folks here will PLEASE correct me in any errors so i do not mistakenly give any bad advice.

Regards, The Omen.
« Last Edit: October 02, 2019, 05:44:01 pm by The Omen »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26045
  • Karma: 2839
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Thumbnail Cache
« Reply #2 on: October 02, 2019, 06:02:53 pm »
Code: [Select]
rm -rfv ~/.cache/thumbnails
would be the simplest .. that directory will get automatically recreated anyway the very next time any thumbnails are generated.
(as will anything in ~/.cache)



@The Omen

the -v option just means 'verbose', so the command will return a full list of things being deleted.
« Last Edit: October 02, 2019, 06:04:27 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline 151tom

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 9
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 (64 Bit)
Re: Thumbnail Cache
« Reply #3 on: October 02, 2019, 07:07:59 pm »
Hello PCNetSpec & The Omen,

Thanks for the reply's which I will copy and paste into my terminal commands folder.

I always learning different ways of doing things in Linux.


Thanks again. :)

Offline The Omen

  • Jr. Member
  • **
  • Posts: 76
  • Karma: 10
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 9 respin
Re: [SOLVED] Thumbnail Cache
« Reply #4 on: October 02, 2019, 07:39:58 pm »
Thank-you Mr. Greaves for the better understanding of how "that" particular command works with your explaination of the end result, where I thought that it would destroy that particualr directory.

My mentor was very right in having me join this forum to further my learning in Linux and staying current with the current version etc.

Quote
that directory will get automatically recreated anyway the very next time any thumbnails are generated.
(as will anything in ~/.cache)

Hi 151tom, I am also still learning as well.

Warm and Respectful Regards, to both of you,

The Omen
« Last Edit: October 02, 2019, 07:41:30 pm by The Omen »