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.
- https://www.gnu.org/software/bash/manual/html_node/Bash-Conditional-Expressions.html
- https://www.gnu.org/software/bash/manual/html_node/Conditional-Constructs.html
- https://devhints.io/bash
- https://ubuntu-maryland.org/presentations/reference_bash-cheat.pdf
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+Enter | Toggle fullscreen |
[Alt+Enter,]Alt+Space,X | Maximize window |
[Alt+Enter,]Alt+Space,R | Restore window |
[Alt+Enter,]Alt+Space,N | Minimize Window |
Ctrl++ (plus)/Ctrl+- (minus) | Increase/decrease font size |
Ctrl+Shift+T | New tab |
Ctrl+Tab/Ctrl+Shift+Tab | Cycle tabs |
Ctrl+C | Cancel command |
Ctrl+V | Paste |
Ctrl+D[,Alt+F4] | Exit |
Ctrl+Z | Background command (fg to foreground) |
Ctrl+, (comma) | Edit Windows Terminal settings.json |
Ctrl+Shift+P | Command pallete |
Ctrl+Shift+F | Find text |
Ctrl+Shift+T | New tab |
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.