WSL Bash Output Clipboard Copy

Copy WSL Bash Output to Clipboard

A memo on how to copy Windows WSL Linux Bash standard output/log output to the Windows clipboard. Basically, the PATH is not set, so whether it's cmd or clip, it can't be recognized without the full path. You can set the PATH, but it's easy to conflict with Bash and apt commands, so I think the PATH is not set by default

Shou Arisaka
1 min read
Oct 17, 2025

A memo on how to copy Windows WSL Linux Bash standard output/log output to the Windows clipboard.

Conclusion:

pwd | /mnt/c/Windows/System32/clip.exe

Basically, the PATH is not set, so whether it’s cmd or clip, it can’t be recognized without the full path. You can set the PATH, but it’s easy to conflict with Bash and apt commands, so I think the PATH is not set by default.

You can also switch from Bash to cmd command prompt with:

/mnt/c/Windows/System32/cmd.exe

Share this article

Shou Arisaka Oct 17, 2025

🔗 Copy Links