zenity
Display dialogs from the command-line/shell scripts. Return user-inserted values or 1 if error. More information: https://manned.org/zenity.
- Display the default question dialog:
zenity --question
- Display an info dialog displaying a message:
zenity --info --text ""
- Display a name/password form and output the data separated by ";" ("|" by default):
zenity --forms --add-entry "" --add-password "" --separator ";"
- Display a file selection form in which the user can only select directories:
zenity --file-selection --directory
- Display a progress bar which updates its message every second and show a progress percent:
| zenity --progress
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
