There tar.gz the archive created by the command tar-cpzf ...that is gzip compressed and with a reservation of rights. For example, the following folder structure:
earth
moon
sun
Is it possible with one command to create an archive with the same parameters, containing only one of the folders? For example, to the structure only contains one folder:
moon
With a single command. That is, without resorting to manual unpack, and then pack it to the desired folder.