Skip to main content


Did you know if you're working in the #Windows command line you can use clip to pipe the output of your command to the clipboard? đŸ‘€

For example, you can do this in cmd if you want to copy and paste the info somewhere else (rather than manually having to select the output to copy it):

systeminfo | clip

reshared this

in reply to Jen Gentleman

I wonder if it works in SSH sessions. If yes, then I had been an idiot for at least four years to select and copy everything to Notepad for further review.
in reply to André Polykanine

@menelion I don't think it works the way you think it does, unfortunately. However, it does work in WSL; `ls -la | clip.exe` is a valid command.
in reply to André Polykanine

@menelion It doesn't work in an interactive SSH session, because you'd be running that command in your remote shell. Even assuming the system you were connected to had a `clip` command, it wouldn't have access to your local clipboard. However, you could run one-off commands over SSH and have the session immediately terminate afterwards, and pipe that output to this. @JenMsft
⇧