Learn Mode

File Compression and Command-Line Utilities Quiz

#1

Which command is used to compress files in Unix/Linux systems?

gzip
Explanation

gzip is used for file compression in Unix/Linux.

#2

Which of the following is not a benefit of file compression?

Improved file quality
Explanation

Improved file quality is not a benefit of file compression.

#3

Which command is used to compress files in Windows?

zip
Explanation

'zip' is the command used to compress files in Windows.

#4

Which command is used to compress and decompress files in Windows?

zip
Explanation

'zip' is used for both compression and decompression of files in Windows.

#5

What does the command 'tar' stand for in Unix/Linux?

Tape Archive
Explanation

The 'tar' command stands for Tape Archive in Unix/Linux.

#6

Which option is used with the 'tar' command to extract files?

-x
Explanation

The '-x' option with 'tar' is used to extract files.

#7

What is the purpose of the 'zip' command in Unix/Linux?

To compress files
Explanation

'zip' is used to compress files in Unix/Linux.

#8

Which option is used with the 'zip' command to specify compression level?

-9
Explanation

The '-9' option with 'zip' specifies the compression level.

#9

Which command is used to compress and decompress files in Unix/Linux?

bzip2
Explanation

'bzip2' is used for both compression and decompression of files in Unix/Linux.

#10

Which option is used with the 'gzip' command to keep the original file when compressing?

-k
Explanation

The '-k' option with 'gzip' keeps the original file when compressing.

#11

What is the purpose of the 'unzip' command in Unix/Linux?

To extract files from a compressed file
Explanation

'unzip' is used to extract files from a compressed file in Unix/Linux.

#12

What does the command '7z' primarily do in Unix/Linux?

Compress files using 7-Zip format
Explanation

'7z' compresses files using the 7-Zip format in Unix/Linux.

#13

Which command is used to create a compressed archive containing multiple files in Unix/Linux?

tar
Explanation

'tar' is used to create a compressed archive containing multiple files in Unix/Linux.

#14

What is the purpose of the 'rar' command in Unix/Linux?

To compress files using RAR format
Explanation

'rar' is used to compress files using RAR format in Unix/Linux.

#15

What is the purpose of the 'bzip2' command in Unix/Linux?

To compress files using BZip2 format
Explanation

'bzip2' is used to compress files using the BZip2 format in Unix/Linux.

#16

Which command is used to compress files using LZMA compression in Unix/Linux?

xz
Explanation

'xz' is used to compress files using LZMA compression in Unix/Linux.

Test Your Knowledge

Craft your ideal quiz experience by specifying the number of questions and the difficulty level you desire. Dive in and test your knowledge - we have the perfect quiz waiting for you!