← 返回命令列表

Linux command

gvfs-open 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Open file with default app

gvfs-open [file.pdf]

Open URL

gvfs-open [https://example.com]

Open remote file

gvfs-open smb://server/share/document.docx

Open directory in file manager

gvfs-open [directory]

说明

gvfs-open opens files with the default application registered to handle files of that type. It obtains MIME type information from the shared-mime-info database, and the default handler is stored per-user in `$XDG_DATA_HOME/applications/mimeapps.list`. The tool handles local files, remote URIs, and URLs. When a running GNOME session is detected, `xdg-open` actually calls `gvfs-open` internally.

参数

-h, --help
Display help information.
--version
Show version number and exit.

FAQ

What is the gvfs-open command used for?

gvfs-open opens files with the default application registered to handle files of that type. It obtains MIME type information from the shared-mime-info database, and the default handler is stored per-user in `$XDG_DATA_HOME/applications/mimeapps.list`. The tool handles local files, remote URIs, and URLs. When a running GNOME session is detected, `xdg-open` actually calls `gvfs-open` internally.

How do I run a basic gvfs-open example?

Run `gvfs-open [file.pdf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -h, --help do in gvfs-open?

Display help information.