- Command:
cat /path/to/file | clip.exe
- Description:
cat
command put the file contents to the output. It is then pipe to the
clip.exe
, a Win32 program, redirects output to the Windows clipboard.
Do not forget to add the .EXE
extension of the later one. There are multiple
cat
alternatives can be used, see this and this.
-
Further Reading:
- Windows Subsystem for Linux interoperability with Windows