Which command would be used in Linux to create a compressed tar archive using gzip?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command to create a compressed tar archive using gzip in Linux is composed of the tar command with specific options. The -c option stands for "create," indicating that you wish to create a new archive. The -z option specifies that gzip compression should be applied to the archive being created.

When using this command, what happens is that the files specified after these options will be packaged into a single archive file, and at the same time, the resulting archive will be compressed using gzip, leading to reduced file size and efficient storage.

This combination of options is quite common for creating backups or distributing files while saving space, making it a fundamental command for many Linux users engaged in archiving tasks.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy