← 返回命令列表

Linux command

kwallet-query 命令

文本

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

常用示例

Example

kwallet-query kdewallet --list-entries

Example

kwallet-query kdewallet --list-entries --folder [folder_name]

Example

kwallet-query kdewallet --list-entries --folder ""

Read a password

kwallet-query kdewallet --folder [folder] --read-password [entry]

Write a password

kwallet-query kdewallet --folder [folder] --write-password [entry] < [secret.txt]

Example

kwallet-query --help

说明

kwallet-query is a command-line tool for reading and writing to KDE Wallet. It allows scripts and command-line users to access stored passwords and secrets without the graphical interface.

参数

wallet
Wallet name to query (typically "kdewallet")
-l, --list-entries
List entries in the specified folder
-f, --folder FOLDER
Specify folder to query (empty string lists all folders)
-r, --read-password ENTRY
Read password for specified entry
-w, --write-password ENTRY
Write password for specified entry
-h, --help
Display help information

FAQ

What is the kwallet-query command used for?

kwallet-query is a command-line tool for reading and writing to KDE Wallet. It allows scripts and command-line users to access stored passwords and secrets without the graphical interface.

How do I run a basic kwallet-query example?

Run `kwallet-query kdewallet --list-entries` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does wallet do in kwallet-query?

Wallet name to query (typically "kdewallet")