TestOut Linux Pro 2025 – 400 Free Practice Questions to Pass the Exam

Question: 1 / 400

What command is used to create a compressed archive in Linux?

tar -zcf

The command used to create a compressed archive in Linux is represented by the "tar -zcf" command. This command utilizes the 'tar' utility to create an archive and compress it simultaneously using gzip.

The components of the command 'tar -zcf' break down as follows:

- The 'z' option indicates that gzip compression should be applied to the archive.

- The 'c' option stands for 'create' and is used to create a new archive.

- The 'f' option means 'file' and is followed by the name of the archive file to be created.

This command is widely used because it efficiently combines multiple files into one archive while also compressing the data to save space.

The other options do not serve the same purpose in the context of creating a compressed archive using the tar utility. For example, the command "zip" creates a compressed zip archive, which is a different format, while "compress" refers to a utility that may not be commonly used anymore. The term "archive" doesn't correspond to a specific command and, therefore, doesn't apply to creating compressed archives.

Get further explanation with Examzify DeepDiveBeta

zip

compress

archive

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy