Linux Drop Caches

[Solved] Linux Drop Caches | Rust - Code Explorer | yomemimo.com
Question : linux memory cache clear

Answered by : julio-corradi

# clear pagecache only.
sync; echo 1 > /proc/sys/vm/drop_caches
# clear dentries and inodes.
sync; echo 2 > /proc/sys/vm/drop_caches
# clear pagecache, dentries and inodes.
sync; echo 3 > /proc/sys/vm/drop_caches 

Source : | Last Update : Wed, 08 Jul 20

Question : Clean Cache in Linux

Answered by : abdur-razzaque

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
I think it's safe to remove the archives files. So if you want to free up disk space this are my recommendations:
To delete downloaded packages (.deb) already installed (and no longer needed)
sudo apt-get clean
To remove all stored archives in your cache for packages that can not be downloaded anymore (thus packages that are no longer in the repository or that have a newer version in the repository).
sudo apt-get autoclean
To remove unnecessary packages (After uninstalling an app there could be packages you don't need anymore).
sudo apt-get autoremove
To delete old kernel versions
sudo apt-get remove --purge linux-image-X.X.XX-XX-generic
If you don't know which kernel version to remove
dpkg --get-selections | grep linux-image

Source : https://askubuntu.com/questions/32191/how-do-i-remove-cached-deb-files | Last Update : Tue, 29 Mar 22

Answers related to linux drop caches

Code Explorer Popular Question For Rust