Dos tips
List process and pid
netstat -a -o -b | grep -i '4200'
Script tips
To get the command used to call the batch file (could be foo, ..\foo,
c:\bats\foo.bat, etc.)
%0
To get the nth argument passed to the current script
%1
: first parameter
%2
: second parameter
and so for…
To get the list of all arguments passed to the current script
On Linux system you can get it with $@
.
On the windows it is %*
.
Add an alias in the current shell:
doskey kubectl=microk8s kubectl $*
Update WSL to the true version and use it:
wsl update
wsl --set-default-version 2
Install a specific version of Ubuntu with WSL:
wsl --install -d Ubuntu-20.04
wsl -l
Uninstall a distribution
wsl --unregister Ubuntu-20.04
Enable systemd by running the following command in the WSL terminal:
echo -e "[boot]\nsystemd=true" | sudo tee /etc/wsl.conf