Skip to main content
3 votes

Running command with pipe and spaces on PowerShell using `wsl`

wsl find . -name '*.txt' | xargs grep 'main(' runs find . -name '*.txt' inside wsl then pipe the result to xargs in the current shell, which is outside wsl so obviously it can't be run if xargs is not ...
phuclv's user avatar
  • 28.4k
2 votes

How to fix WSL X11 Forwarding after Windows Update to 23H2

Option 1: Change $DISPLAY Use export DISPLAY=$(ip route list default | awk '{print $3}'):0 Now the $DISPLAY variable looks like this: $ echo $DISPLAY Option 2: Use WSLg WSL now has a ...
nullromo's user avatar
  • 371
2 votes

Auto-generated zone-identity files - Can/should I delete?

To delete: sudo find . -name "*.Identifier" -type f -delete ---From Github--- Turning off "preserve zone information in file attachment" seems to have stopped the zone.Identifer ...
Coder's user avatar
  • 121

Only top scored, non community-wiki answers of a minimum length are eligible