Home

Windows Notes

Powershell (https://aka.ms/powershell)

Windows terminal

wsl

wsl --install
wsl --install -d <DistroName>

winget

gcc on windows

Kill all instance of a program from cmd

TASKKILL /F /IM msedge.exe
TASKKILL /F /IM Code.exe

The first one kills all MS Edge browser instances, the second one does that for Visual Studio Code. The way to identify the name is to find it via Task Manager.

winfetch (a utility similar to neofetch on linux)

(Invoke-WebRequest "https://raw.githubusercontent.com/kiedtl/winfetch/master/winfetch.ps1" -UseBasicParsing).Content.Remove(0,1) | Invoke-Expression

winfetch on windows 11

Internet not working in wsl

Possible errors like failure in name resolution for github (git push not working), etc. A workaround for this known issue is to edit /etc/resolv.conf and set nameserver to 8.8.8.8.