4 ms·
For Linux users, `xdg-open` is the equivalent of `open`. The latter exists on Linux, but it will open a socket. There are a number of utilities that handle cop
by chimeracoder 11y ago
For Linux users, `xdg-open` is the equivalent of `open`. The latter exists on Linux, but it will open a socket.
There are a number of utilities that handle copy/paste, but `xclip` is probably the most widely used.
Screenshots can also be done a number of ways, but `scrot` is my favorite. The two most useful flags to pass with it are `-s` and `-d`.
As for `launchctl`, `systemctl` is what you want to use to do the same things.
Note that these equivalents all address the same functionality, but the syntax may be different.
- jumpwah 11y agoI prefer maim [1] to scrot, you should maybe check it out if you didn't already know about it? [1]: https://github.com/naelstrof/maim https://github.com/naelstrof/maim
- pimlottc 11y agoHaving discovered the usefulness of pbcopy/pbpaste on OSX, I'm simply amazed that the equivalent X utilities are not included by default on every major Linux distribution.
- gh02t 11y agoDifferent philosophy, partly motivated by the consideration that with a package manager the barrier to installing it really low. Personally I prefer to have as little installed as possible in the base system so that I can pick and choose what I want on top. Metapackages that install a large selection of stuff or distros that ship a ton of stuff by default drive me crazy. I don't mind it so much on a Mac as that's kind of part of the whole philosophy of OS X, but Linux (and friends) are in a different niche for me. I'm sure some desktop distros do ship xclip by default though. Knowing the typical variety of Linux distros I expect there's probably even an Xclipbuntu, dedicated solely to showing off the latest xclip release (the users of which have a decade long feud with Xseldora).
- pimlottc 11y agoI guess I should say I'm more surprised that something like xsel or xclip is not part of the standard x11-utils or what have you.
- gh02t 11y agoOh yeah, I agree. Pretty sure the reason xsel or xclip isn't in x11-utils is that they are not part of the Xorg project. Obviously something with equivalent functionality should be there, but I guess the Xorg folks overlooked it and packagers don't want to stick in random stuff.
- barrkel 11y agoAnd for cygwin users, cygstart is the equivalent of open, getclip/putclip for copy/paste, and cygrunsrv is the closest equivalent to launchctl.