The local cache contains files and data that your system has saved to speed up certain processes, but sometimes, you want to ensure you’re seeing the most up-to-date version, which clearing the cache can help with.

Mac:


#!/bin/bash
sudo dscacheutil -flushcache;
sudo killall -HUP mDNSResponder;
sleep 2;

Download the GitHub Gist fedora-configure-and-setup-ikev2.sh

Linux:


sudo /etc/init.d/nscd restart

Background header image created using Dream Studio by stability.ai.

Prompt: Create an image portraying a Clear local cache memory using the command line interface in macos computer

Download Full size image 2K

Tags:#flushcache