← 返回命令列表

Linux command

kioclient 命令

文本

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

常用示例

Open a URL

kioclient exec [url]

Print the contents

kioclient cat [sftp://user@host/path/to/file]

List the contents

kioclient ls [smb://server/share]

Copy one or more files

kioclient cp [path/to/source1] [path/to/source2] [path/to/destination]

Move a file

kioclient mv [path/to/source] [path/to/destination]

Remove a file

kioclient rm [url]

Create a new directory

kioclient mkdir [url]

Open the KDE Properties dialog

kioclient5 openProperties [url]

说明

kioclient is a thin command-line front-end to the KIO framework that powers file access throughout KDE (Dolphin, Konqueror, Gwenview, and many others). It lets shell scripts and users invoke the same network-transparent virtual filesystem that KDE applications use, treating remote shares, archives, and even the trash bin as if they were local paths. Any URL scheme implemented by an installed KIO worker can be used: file: for local paths, sftp: and fish: for SSH-based access, smb: for Windows shares, ftp: and webdav: for legacy network shares, trash: for the recycle bin, tar: and zip: for archive contents, and protocol-specific schemes such as man:, info:, mtp:, gdrive:, and many more. The available list depends on which kio-extras plugins are installed. In addition to plain file operations (cp, mv, rm, mkdir, ls, cat, download), kioclient can launch the default GUI handler for a resource through exec, which is the easiest way to script "open this URL in the right KDE app". The openProperties command displays the same Properties dialog that Dolphin shows on right-click. On modern distributions, kioclient is split into a Qt5 binary (kioclient5) and a Qt6 binary (kioclient6). The unversioned kioclient symlink, where present, points at whichever build the distribution treats as default.

参数

--commands
Print the list of available commands.
--overwrite
Overwrite destination files when copying or moving.
--interactive
Use interactive dialogs (default for GUI usage).
--noninteractive
Suppress dialogs; useful for scripts.
--platform _name_
Choose the Qt Platform Abstraction plugin (e.g. _xcb_, _wayland_, _offscreen_).
--help
Print help and exit.
--version
Print the program version.

FAQ

What is the kioclient command used for?

kioclient is a thin command-line front-end to the KIO framework that powers file access throughout KDE (Dolphin, Konqueror, Gwenview, and many others). It lets shell scripts and users invoke the same network-transparent virtual filesystem that KDE applications use, treating remote shares, archives, and even the trash bin as if they were local paths. Any URL scheme implemented by an installed KIO worker can be used: file: for local paths, sftp: and fish: for SSH-based access, smb: for Windows shares, ftp: and webdav: for legacy network shares, trash: for the recycle bin, tar: and zip: for archive contents, and protocol-specific schemes such as man:, info:, mtp:, gdrive:, and many more. The available list depends on which kio-extras plugins are installed. In addition to plain file operations (cp, mv, rm, mkdir, ls, cat, download), kioclient can launch the default GUI handler for a resource through exec, which is the easiest way to script "open this URL in the right KDE app". The openProperties command displays the same Properties dialog that Dolphin shows on right-click. On modern distributions, kioclient is split into a Qt5 binary (kioclient5) and a Qt6 binary (kioclient6). The unversioned kioclient symlink, where present, points at whichever build the distribution treats as default.

How do I run a basic kioclient example?

Run `kioclient exec [url]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --commands do in kioclient?

Print the list of available commands.