![]() |
VOOZH | about |
xdg-open command in the Linux system is used to open a file or URL in the userβs preferred application. The URL will be opened in the userβs preferred web browser if a URL is provided. The file will be opened in the preferred application for files of that type if a file is provided. xdg-open supports ftp, file, https, and http URLs.
This can be used inside a desktop session only. It is not recommended to use xdg-open as root. Here, zero is an indication of success while non-zero shows failure.
xdg-open {file | URL}where,
xdg-open read.htmlπ Basic ExampleThis option will show the xdg-utils version information.
xdg-open --versionπ xdg-open --versionProvides a summary of the command's options and usage.
xdg-open --helpπ xdg-open --helpOpens the manual page for the xdg-open command, offering detailed documentation about the tool.
xdg-open --manualπ xdg-open --manualThe xdg-open command is a simple yet powerful tool for opening files and URLs in the user's default applications. It seamlessly integrates with the desktop environment, making it easy to launch files or web resources from the command line. With support for multiple file types and URL schemes, it is an essential utility for both casual users and system administrators alike.