Problem scenario
You want to use the same command for encryption and compression. You want to avoid installing other packages. What should you do?
Solution
Use zip. The tar command by itself does NOT do compression (according to this external posting).
One advantage of zip is that it is usually pre-installed on most Linux servers. The user and group of the files thus compressed will be retained automatically.
…