Adding a windows installed application to WSL path so we can run from Ubuntu wsl:
	Install app on Windows.
	Find the applications path to the folder where the executable file (app.exe) is located
	copy the path.
	on WSL, go to the root folder where .bashrc is located
	nano .bashrc
	scroll to the end of file and add the path & alias using the format below
	export PATH="$PATH:/mnt/c/Program Files/Amazon/AWSCLIV2"
	alias aws='aws.exe'
	save
	apply changes by run source command below
	source ~/.bashrc
	Now, you should be able to run the application from anywhere in the WSL terminal1) Run PowerShell as administrator
2) Paste this command:
  Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
3) Restart your PC
4) Run PowerShell as administrator again
5) Paste these two commands:
  dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
6) Restart your PC Again
7) Download the Linux Kernel Update Package from
  https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
8) Then, run powershell as administrator again and paste this command:
  wsl --set-default-version 2
9) Install a distro of your choice from the Microsoft Store (Example Ubuntu, Kali Linux)

OR:

Run this command: wsl --install
NOTE: To Run this command given above, you must be running 
Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11.
Also, running this command installs Ubuntu by default.# go into some folder into which you want the file to be downloaded
cd <somefolder>

# download Ubuntu 20.04
Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile Ubuntu.appx -UseBasicParsing

# install downloaded *.appx file
Add-AppxPackage .\Ubuntu.appx

wsl --list --verbose 
wsl --set-version Ubuntu-20.04 2# go into some folder into which you want the file to be downloaded
cd <somefolder>

# download Ubuntu 20.04
Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile Ubuntu.appx -UseBasicParsing

# install downloaded *.appx file
Add-AppxPackage .\Ubuntu.appxwsl --installwsl.exe --install   wsl --set-default-version 2
     dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  Jfugex

Shell/Bash相关代码片段

git put existing folder to gitlab

cloning a repository with ssh

git commit reuse message

git commit with previous message

can't pull from another branch

install pyfiglet python

markdown parser

Exception: Can not find valid pkg-config name.

force quit macos

force quit mac

force quit

docker desktop current user not user groups

force quit menu mac

pomodoro app for ubuntu

expo-server-sdk npm install

postgresql database backup script windows

kill wandb

hkp://pool.sks-keyservers.net

change docker image tag

how to exec into a pod as root

install swift in linux

git delete pruned branches

git change master head

has insufficient funds for spend sol local

could not find `Cargo.toml` in

git workflow call

kill running port one liner ubuntu

bash check if running as root

how to install openssl in windows

openssh latest version for raspbian

sed lines after match

pip install is very slow

gitlab connect error fix in git

Intellij removing space changes git

install kubernetes alma linux 8.9

how to remove quotes from a string in bash

how to install grafana-prometheus kubernetes

show laptop battery health windows 10

ubuntu terminal won't open

uninstall pip ubuntu

fatal: detected dubious ownership in repository

docker npm network timeout

install nvidia drivers pop os

how to list apt holds

how to install yo code generator

install notion ubuntu

zsh-autocomplete

install yabai macos

cwpanel install rocky linux 9

tar command not found

Correct use of command substitution in Bash

how to push changes to github from terminal

ollama uninstall

rocky 9 mysql

nodejs jest only on specific file

windows ubuntu wsl

ignore a folder in SVN

npm install for express the version 5

add local .env to vercel env

pihole unbound install and config

Create SSH Key

kitty terminal install

X server (windows, macos and linux) for docker gui

rename a local Git branch

delete a Git branch locally and remotely

laravel generate sitemap xml

max github file size

find-large-files-linux

git pull accept all incoming changes

upgrade to fedora 40 from terminal

upgrade all packages pnpm

imperative configmap command

how to show ip address in linux

linux libreoffice cli convert docx to txt

how to install .run file in ubuntu

start tensorboard

how to install xampp in ubuntu

matlab install toolbox

how to open matlab after installation

matlab installation key