JenMsft,
@JenMsft@mastodon.social avatar

Did you know if you're working in the 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

Doomed_Daniel,
@Doomed_Daniel@mastodon.gamedev.place avatar

@JenMsft
Bonus: On Linux/BSD/... with X11 you can do the same with "xclip".
When using Wayland instead of X11, there's apparently "wl-copy" from the wl-clipboard package

mbrdev,
@mbrdev@mastodon.social avatar

@JenMsft amazing tip!

thomasbeagle,
@thomasbeagle@mastodon.nz avatar

@JenMsft I did not. And OMG!

I just tested it and this is so good!

JenMsft,
@JenMsft@mastodon.social avatar

@thomasbeagle Isn't it handy? XD

menelion,
@menelion@dragonscave.space avatar

@JenMsft 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.

BrailleScreen,

@menelion @JenMsft 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.

jscholes,
@jscholes@dragonscave.space avatar

@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

JenMsft,
@JenMsft@mastodon.social avatar

(I believe if you're using WSL you need to fully say clip.exe, so like this:

tail ~/.bashrc | clip.exe

)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • windows
  • kavyap
  • thenastyranch
  • GTA5RPClips
  • tester
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • cisconetworking
  • megavids
  • khanakhh
  • normalnudes
  • osvaldo12
  • cubers
  • tacticalgear
  • Durango
  • ethstaker
  • modclub
  • anitta
  • provamag3
  • Leos
  • JUstTest
  • lostlight
  • All magazines