Windows Terminal is an amazing corner for all Admins and Windows lovers. There are innumerable tricks and commands, that unfold various functionalities that you might not be aware of. Windows Terminal is a powerful tool for Windows operating system where you can run any command line application.
A new trick has surfaced on Reddit.
How to copy command outputs to the clipboard from PowerShell, Command Prompt and WSL
The Reddit user showed that by using the command clip after a command, you copy the entire command output to the clipboard. This is an amazing hidden feature. The best part is that it works for any Windows Terminal app, such as Microsoft PowerShellm Command Prompt, Windows Subsystem for Linux. However, there are some small differences between commands of PowerShell, CMD to that of WSL. In WSL, you need to pipe to clip.exe, which tells Linux to interact with the clipboard on the host system.