(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| # Script to compact the VHDX for a WSL distribution (e.g., ext4.vhdx) | |
| # | |
| # WHY: WSL2 VHDX files grow dynamically but don't shrink automatically when files | |
| # are deleted within the Linux environment. This script helps reclaim that space. | |
| # | |
| # USAGE: | |
| # 1. (Optional but Recommended) Clean up files inside your WSL distro first. | |
| # From within WSL: | |
| # sudo apt-get update && sudo apt-get upgrade -y | |
| # sudo apt-get autoremove -y && sudo apt-get autoclean -y |