Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

wsl2 taking much memory

[wsl2]
# https://docs.microsoft.com/en-us/windows/wsl/wsl-config (Docs)
# https://github.com/microsoft/WSL/issues/4166 (Topic)
memory=4GB
swap=16GB
localhostForwarding=true
Comment

PREVIOUS NEXT
Code Example
Shell :: command to add a user to a group 
Shell :: javascript to exe 
Shell :: install teamviewer ubuntu 18 
Shell :: grep exclude files 
Shell :: mac Running setup.py install for pyodbc did not run successfully. 
Shell :: grep a port in mac 
Shell :: bash case statement 
Shell :: download kali linux iso file 64 bit 
Shell :: linux bash clean up log files in /var/log 
Shell :: download composer 
Shell :: install fira code ubuntu 
Shell :: curl upload to artifactory with basic auth 
Shell :: ssh key gen 
Shell :: add text with terminal 
Shell :: make current commit head 
Shell :: push the project to github 
Shell :: copy files between servers 
Shell :: how to change hostname in kali linux 
Shell :: setup systemctl redis 
Shell :: git add file without commit 
Shell :: git check current branch 
Shell :: expand aliases 
Shell :: vijm jump to end of file 
Shell :: postinstall docker 
Shell :: laravel new project in install 
Shell :: gradle git bash terminal weird characters 
Shell :: linux list all system groups in order 
Shell :: How do I make a Git commit in the past 
Shell :: vmd in terminal 
Shell :: net speed monitor for ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =