Getting ready

Besides having a terminal open, we need to remember a few concepts:

  • The If..Else condition case in shell scripting
  • IP address of the device
  • curl command must be installed (you can install it by using the following command: sudo apt install curl)

The purpose of this section is to show you how you can check network connectivity.

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.