开发者

command line to open a window

开发者 https://www.devze.com 2023-01-29 20:27 出处:网络
using command line, how can i open a window containing the folder? I am looking for a unix command similar to Mac:

using command line, how can i open a window containing the folder?

I am looking for a unix command similar to Mac:

$> o开发者_如何学Pythonpen /tmp

That command will open /tmp in an (UI) window.

So what's the equivalent in linux? I am currently using Debian.


To open a folder (or any type of file/URL) with the preferred application in a Desktop Environment independent way, use xdg-open:

xdg-open /tmp


In Ubuntu, with Gnome, you'd do

nautilus /tmp

Under KDE, I guess you'd do

konqueror /tmp

This blog post talks about alternatives to nautilus and konqueror.

0

精彩评论

暂无评论...
验证码 换一张
取 消