Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

wsl2 release memory

STEP 1
alias drop_cache="sudo sh -c "echo 3 >'/proc/sys/vm/drop_caches' && swapoff -a && swapon -a && printf '
%s
' 'Ram-cache and Swap Cleared'""
STEP 2
source ~/.bashrc
STEP 3
drop_cache
 
PREVIOUS NEXT
Tagged: #release #memory
ADD COMMENT
Topic
Name
4+4 =