Skip to Content
Learning Linux Shell Scripting - Second Edition
book

Learning Linux Shell Scripting - Second Edition

by Ganesh Sanjiv Naik
May 2018
Beginner
332 pages
7h 28m
English
Packt Publishing
Content preview from Learning Linux Shell Scripting - Second Edition

Creating dialog boxes with the dialog utility

The dialog utility is used to create a basic-level graphical user interface. We can use this in shell script to create very useful programs.

To install the dialog utility in Debian or Ubuntu Linux, enter the following command:

    $ sudo apt-get update
    $ sudo apt-get install l dialog
  

Similarly, enter the following command to install the utility dialog in CentOS or Red Hat Linux:

    $ sudo yum install dialog

The typical syntax of the dialog command is as follows:

    $ dialog --common-options --boxType "Text" Height Width 
                                      --box-specific-option

The common-options utility is used to set the background color, title, and so on in dialog boxes.

The option details are as follows:

  • Text: The caption or contents ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Linux Shell Scripting

Learning Linux Shell Scripting

Ganesh Sanjiv Naik
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar

Publisher Resources

ISBN: 9781788993197Supplemental Content