clear cache in ubuntu terminal by force code example Example: remove all cache ubuntu $ sudo apt-get clean