Create GUI dialogs in one line of code

Finding a Little Zen

© Lead Image © Martin Capek,

© Lead Image © Martin Capek,

Article from Issue 247/2021

The Zenity command-line utility lets you create simple dialog boxes with your own data or with the output of utilities and applications.

Zenity is a command-line GUI creator that has been around since 2012 and is pre-installed on most versions of Linux, including Raspberry Pis. Zenity isn't designed to be a high-level GUI development tool, but if you just need some basic scripting with dialogs, then Zenity might be a perfect fit.

I was amazed that in one line of Bash code I was able to show:

  • stats in a message dialog
  • a web page in a dialog
  • CSV data or SQL queries in a list dialog


Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95