This blog post intends to list and provide cheat sheets for common information needs while working with Windows and especially Windows Subsystem for Linux (WSL). Optimally, this information could eventually appear in a cheat sheet could work as a Windows or Windows Terminal desktop background. If you know of additional resources to include, please comment on this blog post.
Bash Commands, Operators, Conditionals, Loops, etc.
Bash Shell Initialization
Windows Terminal Bash Shell Keyboard Shortcuts
To copy selected text to the Windows clipboard automatically, ensure copyOnSelect is set to true in Windows Terminal settings.json.
|Ctrl++ (plus)/Ctrl+- (minus)||Increase/decrease font size|
|Ctrl+Z||Background command (fg to foreground)|
|Ctrl+, (comma)||Edit Windows Terminal settings.json|
The WSL* Commands
The most relevant WSL commands are generally:
- wslpath: Convert between Windows and Unix file system paths.
- wslvar: Retrieve Windows variable.
- wslupath: Retrieve Windows variable as Unix file system path.