fbpx

Q: Using Terminal to clear the cache

0  comments

Recently, we saw a MacBook Pro that would not allow us to clear the cache directly through the Terminal. The cache is the repository of files in your browser. Whether you are using Internet Explorer, Mozilla Firefox, or Google Chrome, all of these browsers store files to make surfing faster. Lately, viruses are occurring in your browser instead of on the computer. It is our belief that today’s virus infects websites therefore terminology used to explain internet content like clear the cache can be confusingbrowsers. The clickbait found on every site hides browser hacks that are designed to make you believe there is something wrong with your computer. If they can get you on the phone, they often refer to themselves as Microsoft or Dell, etc. Anything to convince you that you need them to scan your computer or all is lost.

If you are ever the victim of one of those hacks. Apple Forums explains how to clear the cache of your browser when you can’t do it the normal way. An excerpt from the full article is below.

Click here to view original web page at discussions.apple.com

Alternatives to clear the cache for Safari

You can empty the cache file for Safari. First, check its size using the disk usage (du) command:

du -h /Users/$HOME/Library/Caches/com.apple.Safari/Cache.db

Note: Replace “$HOME” with the name of your home folder. You can use the user identity (id) command to find it:

du -h /Users/$HOME/Library/Caches/com.apple.Safari/Cache.db

Warning: when you use the remove (rm) command files are essentially unrecoverable. A more prudent approach is to use the move (mv) command:

mv /Users/$HOME/Library/Caches/com.apple.Safari/Cache.db ~/.Trash/

If you need assistance from PC Handyman to clear the cache, call us at +1[216]-236-8743

 


Tags

clear cache, clear the cache, macbook pro, safari


You may also like

Eye-opening Insights from the 2023 Annual Cybersecurity Attitudes and Behaviors Report

Eye-opening Insights from the 2023 Annual Cybersecurity Attitudes and Behaviors Report

Subscribe to our newsletter now!