4 ms·
I recognize this is the most trivial example cited, but on a Mac, you can also use the `open` command to open an URL: open "http://example.com"
by aaronbrethorst 2y ago
I recognize this is the most trivial example cited, but on a Mac, you can also use the `open` command to open an URL:
open "http://example.com"
- deleted 2y ago[deleted]
- RodgerTheGreat 2y agoSome Linux distros offer a similar (though far less memorably named) "xdg-open". It doesn't do any of the other really handy things the MacOS "open" command can do, like "open -f" slurping stdin into a fresh instance of your default text editor.
- o11c 2y agoRecent distros have `open` as a symlink to `xdg-open` instead of the old `openvt`.
- ttyprintk 2y agoI believe that’ll be deprecated by `gio open` soon.
- o11c 2y agoAIUI xdg-open is the standard tool which then forwards to the (equivalent of the?) desktop-specific tools. For KDE it's `kioclient exec`. I wouldn't be surprised the GNOME people try to break this standard tool too.
- PinkSheep 2y agoThis is correct. Unfortunately, xdg-tools is a set of almost forgotten scripts that need some more eyes and collaboration to polish. I've seen many problems there. Nobody is actively maintaining it, but a couple developers could get the ball rolling. (I'm interested)
- loloquwowndueo 2y agoThat’s not what httpx does.
- yismail 2y agoalso, open . opens your current directory in Finder
- adamsilkey 2y agoOn Windows, you can do this from the run dialogue! [WIN]+R -> https://google.com https://google.com