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 :: shell script to count number of lines in a file 
Shell :: rename pc powershell 
Shell :: ubuntu setting not showing 
Shell :: git add email 
Shell :: rails no migration with version number 
Shell :: git pull from another branch 
Shell :: git syntax 
Shell :: substring in shell script 
Shell :: how to create a new file in kali linux 
Shell :: remote desktop connection wsl2 
Shell :: dotenv installation 
Shell :: bash initialize array 
Shell :: windows nginx stop 
Shell :: sudo add permissions to user 
Shell :: delete all local branches except current branch 
Shell :: how to filter 12 character words from file bash 
Shell :: YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ 
Shell :: conda install parse 
Shell :: select ords version 
Shell :: git alias list 
Shell :: forticlient vpn connected but not working 
Shell :: chokidar npm 
Shell :: docker compose multiple command 
Shell :: reverse search command mac 
Shell :: mac install sklearn 
Shell :: kubernetes get logs from pod 
Shell :: remove eclipse from ubuntu 
Shell :: git remove without deleting 
Shell :: stop npm server cmd 
Shell :: react route install 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =