WSLVAR(1)
π
WSLVAR(1) β the wslvar glow-up (WSL Utilities User Manual, bestie) π
okay so picture this: you're in your Linux terminal era β¨, living your best life, but you need the tea from the Windows side of the machine. That's where wslvar comes in. It's a whole component of WSL Utilities, and it's here to hand you Windows system environment variables like your most reliable friend who always knows the group chat drama π«Ά
β¨ NAME β¨
wslvar β Component of WSL Utilities π
πΈ SYNOPSIS πΈ
wslvar [-sl] NAME
wslvar [-hvSL]
π¦ DESCRIPTION π¦
This is a WSL tool that helps you get Windows system environment variables. That's it, that's the vibe. It pulls the Windows-side info you need and hands it over, no cap π
π OPTIONS π
π Output Type Options
-s,--sysβ use data from system local & global variables. the classic "give me the system-wide stuff" move β¨-l,--shellβ use data from Shell folder environment variables. this one's all about the Shell folder vibes π
π§ Other Options
-h,--helpβ print a simple help. your little "what do I do now" moment, but make it helpful π-v,--versionβ print current version. literally just the version, bestie π-S,--getsysβ show available system local & global variables. great for a little window shopping before you commit π-L,--getshellβ show available Shell folder environment variables. same shopping spree, Shell folder edition ποΈ
π CONFIGURATION π
WSLVAR_DEFAULT_VARTYPEβ the default type of variable to get when you don't specify an option. The default type is1. Here are the available Types:1: User Shell Folders2: Windows Environment Variables
so if you're the type of person who never specifies an option (respect, honestly), this env var decides what you get π«
π AUTHOR π
Created by Patrick Wu <me@patrickwu.space> β icon behaviour, we love to see it π«Ά
π REPORTING BUGS π
Report bugs to <https://github.com/wslutilities/wslu/issues>; for Ubuntu specific/related bugs, report to <https://bugs.launchpad.net/ubuntu/+source/wslu>. Found a problem? don't suffer in silence, drop it in the issue tracker, the maintainers ate and left no crumbs π₯
π COPYRIGHT π
This is free software; you can redistribute it and/or modify it under the terms of the GNU GPL version 3 or (at your option) any later version. There is NO warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. so like, it's free, it's open, it's yours to remix β but if it breaks, it breaks, and that's on nobody π
β SEE ALSO β
wslu(7)β the rest of the WSL Utilities universe, go explore bestie π¦
kisses, this page is wslvar from WSL Utilities, version 4.1.4-1, dated 2026-05-01 π
β¨π
π¦ where this page comes from
- alpine 3.24: wslu-doc 4.1.4-r0 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms