Zenity_Rhel8

KARTHIKEYAN PCP
3 min readSep 26, 2021

Zenity is free software and a cross-platform program that allows the execution of GTK dialog boxes in command-line and shell scripts.

It allows to ask and present information to/from shell in Graphical Boxes. It lets you create Graphical dialog boxes in command-line and makes the interaction between user and shell very easy.

We can use man zenity command to view all the options available in the zenity command

root@localhost~]# man zenity

Some of the basic dialogues available in ZENITY:

  • Calendar Dialog Box:-
root@localhost~]# zenity --calendar
  • Entry Dialog Box:-
root@localhost~]# zenity --entry
  • Password Dialog Box:-
root@localhost~]# zenity --password
  • Error Dialog Box:-
root@localhost~]# zenity --error
  • File Selection Dialog Box:-
root@localhost~]# zenity --file-selection
  • Info Dialog Box:-
root@localhost~]# zenity --info
  • Forms Dialog Box:-
root@localhost~]# zenity --forms
  • Progress Dialog Box:-
root@localhost~]# zenity --progress
  • Color Selection Dialog Box:-
root@localhost~]# zenity --color-selection
  • Scale Dialog Box:-
root@localhost~]# zenity --scale
  • Warning Dialog Box:-
root@localhost~]# zenity --warning
  • About Dialog Box:-
root@localhost~]# zenity --about

Further a lot can be done by using zenity command , as mentioned above we can use man — zenity option and can explore all the options that zenity provides.

--

--