Nuacht

This trick is to use the bash while command to create a loop, but preface the command that you want to run with a ! sign so that it loops until the command succceeds. Here’s how it works.
How to use Terminal on a Mac We’re getting ahead of ourselves, however. Using Terminal is straightforward: you type a command on the command-line and press Return to execute it.