What flag sets the block size when using the tar command?

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 flag that sets the block size when using the tar command is indeed the option that specifies the block size in 512-byte records. When you use the -b flag, you can define how many blocks of data are read and written at a time. This can be particularly useful when dealing with large files or when performance is a factor, as adjusting the block size can influence the speed of the backup or extraction processes.

The other options do serve different purposes in the tar command. For instance, the -c flag is used to create a new archive, which doesn’t relate to block size settings. The -f flag is employed to specify the filename of the archive you are working with. The -x flag is for extracting files from an archive. Thus, while each of these flags holds significance for the tar command, the -b flag is the specialized option designed explicitly for setting the block size.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy