-1

Should I remove this file in my terminal for better performance?

In a simpler explanation should I run:

cd
ls
rm -r .cache

for better performance?

My assumption is that it will have to compile less. Thank you!

mchid
  • 43,546
  • 8
  • 97
  • 150
MoW3
  • 11
  • 1
    what file are you referring to? – mchid Nov 15 '15 at 19:56
  • browser and third party attachments – MoW3 Nov 15 '15 at 20:06
  • Can you please provide the path to this file? For example: ~/.cache/google-chrome/Default/Cache thanks! – mchid Nov 15 '15 at 20:09
  • In a simpler explanation should I cd -> ls -> rm -r .cache for better performance? – MoW3 Nov 15 '15 at 20:50
  • What makes you think you'll get better performance? Usually caches are there to improve performance. Are you having a problem with particular software? – thomasrutter Nov 15 '15 at 23:01
  • I thought that the disk space it would free up would help my initial start up, but I just remembered these are two different memories. Sorry, lack of sleep. Thank you! – MoW3 Nov 15 '15 at 23:03

1 Answers1

0

I think this is the command you are looking for and do not use sudo here:

rm -r ~/.cache/*/*

It may ask you if you want to remove a write-protected file, if so, type n and press Enter to proceed.

Alternatively, you could do this instead:

cd
ls -a
rm -r .cache/*/*

This may actually slow performance down as the cache is used to speed things up but it will free up some disk space.

mchid
  • 43,546
  • 8
  • 97
  • 150
  • @VariableSyntax No problem, I actually cleaned this directory out recently for disk space reasons and I noticed that performance suffers when opening directories in Nautilus because the thumbnails for all the files need to be regenerated. – mchid Nov 15 '15 at 21:10