How to compress and uncompress files and folders in the Terminal in macOS Monterey

Since macOS is based on Unix there are a number of ways to compress files and folders within the filing system using Unix based application code, below are a few options using the Terminal or command line interface (cli). The…