{"id":7772,"date":"2024-07-04T12:54:35","date_gmt":"2024-07-04T06:54:35","guid":{"rendered":"https:\/\/mcqacademy.com\/en\/?post_type=mcq&#038;p=7772"},"modified":"2024-07-04T13:40:54","modified_gmt":"2024-07-04T07:40:54","slug":"which-of-the-following-commands-can-be-used-to-compress-multiple-files-into-a-single-gzip-archive-in-kali-linux","status":"publish","type":"mcq","link":"https:\/\/mcqacademy.com\/en\/mcq\/which-of-the-following-commands-can-be-used-to-compress-multiple-files-into-a-single-gzip-archive-in-kali-linux\/","title":{"rendered":"Which of the following commands can be used to compress multiple files into a single gzip archive in Kali Linux?"},"content":{"rendered":"","protected":false},"author":1158,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","topic":[1505],"subject":[1504],"education_level":[],"class_list":["post-7772","mcq","type-mcq","status-publish","hentry","topic-kali-linux","subject-operating-systems"],"mcq_note":"<strong>This command creates a single compressed archive (archive.tar.gz) containing file1, file2, and file3.<\/strong>\r\n\r\n<span style=\"text-decoration: underline\"><strong>However, from the given options:<\/strong><\/span>\r\n<ul>\r\n \t<li>gzip file1 file2 file3 will attempt to compress each file individually. gzip -c file1 &gt; file2.gz &gt; file3.gz is not a valid command.<\/li>\r\n \t<li>gzip file1 &gt; file2.gz &amp;&amp; gzip file2 &gt; file3.gz will sequentially compress file1 and file2 but not into a single archive.<\/li>\r\n \t<li>gunzip file1 file2 file3 is used to decompress files, not compress them. None of the provided options directly create a single gzip archive from multiple files.<\/li>\r\n<\/ul>\r\nThe best method is using tar as shown above.","mcq_options":[{"right":"yes","answer":"gzip file1 file2 file3"},{"right":"no","answer":"gzip -c file1 &gt; file2.gz &gt; file3.gz "},{"right":"no","answer":"gzip file1 &gt; file2.gz &amp;&amp; gzip "},{"right":"no","answer":"gunzip file1 file2 file3"}],"multi_answers":"no","subject_terms":[{"id":1504,"title":"Operating Systems","slug":"operating-systems"}],"topic_terms":[{"id":1505,"title":"Kali Linux","slug":"kali-linux"}],"_links":{"self":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/mcq\/7772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/mcq"}],"about":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/types\/mcq"}],"author":[{"embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/users\/1158"}],"replies":[{"embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/comments?post=7772"}],"wp:attachment":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/media?parent=7772"}],"wp:term":[{"taxonomy":"topic","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/topic?post=7772"},{"taxonomy":"subject","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/subject?post=7772"},{"taxonomy":"education_level","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/education_level?post=7772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}