How do you copy output of commands in WSL to clipboard?

Experience Level: Junior
Tags: WSL

Answer

Run the following:

ipconfig.exe|clip.exe

Instead of ipconfig.exe, you can obviously use any command you want.

Comments

No Comments Yet.
Be the first to tell us what you think.
Windows Subsystem for Linux (WSL)
Windows Subsystem for Linux (WSL)

Are you learning WSL ? Try our test we designed to help you progress faster.

Test yourself