← 返回命令列表

Linux command

xdg-open 命令

文本

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

常用示例

Example

xdg-open .

Example

xdg-open https://example.com

Example

xdg-open path/to/image.png

Example

xdg-open path/to/document.pdf

Example

xdg-open path/to/video.mp4

说明

xdg-open opens a file or URL in the user's preferred application. It is part of the xdg-utils package and works across different desktop environments by detecting which one is running and using the appropriate method.

参数

--help
Display help message
--version
Display version information

FAQ

What is the xdg-open command used for?

xdg-open opens a file or URL in the user's preferred application. It is part of the xdg-utils package and works across different desktop environments by detecting which one is running and using the appropriate method.

How do I run a basic xdg-open example?

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

What does --help do in xdg-open?

Display help message