Windows Subsystem for Linux Cheat Sheet of Cheet Sheets

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

Daemons

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.

Alt+EnterToggle fullscreen
[Alt+Enter,]Alt+Space,XMaximize window
[Alt+Enter,]Alt+Space,RRestore window
[Alt+Enter,]Alt+Space,NMinimize Window
Ctrl++ (plus)/Ctrl+- (minus)Increase/decrease font size
Ctrl+Shift+TNew tab
Ctrl+Tab/Ctrl+Shift+TabCycle tabs
Ctrl+CCancel command
Ctrl+VPaste
Ctrl+D[,Alt+F4]Exit
Ctrl+ZBackground command (fg to foreground)
Ctrl+, (comma)Edit Windows Terminal settings.json
Ctrl+Shift+PCommand pallete
Ctrl+Shift+FFind text
Ctrl+Shift+TNew tab
Windows Terminal WSL Bash Keyboard Shortcuts

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.

Accessing Windows Functions

Virtual Desktops

Browsers

Leave a comment