The ability to create secure shell scripts is essential not only for system administrators, but also for users who wants to automate repetitive tasks. Sometimes, from our shell scripts, we need to provide the user with some kind of information, ask him/her to provide some input, choose from a set of alternatives, or just ask for his/her confirmation before performing a potentially dangerous operation. All those actions, can be performed from the command line, of course, but to make our scripts more user-friendly, we can use of Whiptail to customize and display textual widgets.
How to manage WiFi interfaces with rfkill command on Linux
Rfkill is an utility available in the vast majority of Linux distributions, and often installed by default. The utility allows us to list, enable or disable various types of wireless interfaces like WIFI or Bluetooth on Linux.