5 ms·
Nice. Linux has been missing out on this. On macos you have the 'open <path>' command, which is equivalent to double clicking that <path> object, whether it be
by angry_octet 4y ago
Nice. Linux has been missing out on this.
On macos you have the 'open <path>' command, which is equivalent to double clicking that <path> object, whether it be a folder, file or application; you can also drag a folder/file to the terminal to paste it's path. No context menu <open terminal here> by default, but I think there are add one which do that.
- dixie_land 4y agoFWIW xdg-open works similar to open https://linux.die.net/man/1/xdg-open https://linux.die.net/man/1/xdg-open
- leejoramo 4y agoJust yesterday i accidentally type `open .` in my Ubuntu/KDE/fish shell to open the current directory in the GUI. I quickly thought “wait, remember that only works on macOS” and the was shocked to see KDE’s Dolphin open the directory. I dig into it and found there was an alias for ‘open’ to ‘xdg-open’ Nice
- skissane 4y agoOn Linux, `open` was already taken - by a command to run a program on a virtual console (aka virtual terminal; also VC or VT for short). Probably doesn't see much use anymore. I remember in the 1990s, running Slackware, I used virtual consoles all the time. Nowadays, I have an Ubuntu box sitting on my desk, and I use it a lot, but always over SSH or HTTPS from my Mac. It doesn't even have a monitor attached to it any more; back when it did, the monitor would spend months at a time turned off, and on the rare occasions I did use it, I don't remember ever leaving X11 (or maybe it was Wayland, I can't remember). PTYs still get used all the time, but virtual consoles/terminals not that much. Hence the command had to be named `xdg-open`. Until, more recently, someone decided it was a stupid situation, so `open` was renamed `openvt`, and `open` is now an alias for `xdg-open`.
- synthc 4y agoLinux has xdg-open to open files from the terminal
- deleted 4y ago[deleted]