How it works…

Now, we will learn about the options used in the preceding command as well as the script:

  1. In the command, the options we have used are these:
    1. c: This option will create an archive
    2. v: This option is for verbose mode. We can see what files we are archiving.
    3. f: This option will take you back to the file.
    4. z: This option is used to compress it with gzip.
  2. In this script, the options we have used are as listed:
    1. u: This option is used for updating the archive.
    2. v: For verbose.
    3. f: This option is to take back to a file.

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.