ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 365 - XK0-005 discussion

Report
Export

A Linux systems administrator needs to compress a file named passwords.txt. The compressed file should be saved as passwords.txt.gz. Which of the following commands should the administrator use to accomplish this task?

A.

gzip -c passwords.txt > passwords.txt.gz

Answers
A.

gzip -c passwords.txt > passwords.txt.gz

B.

gzip -d passwords.txt | passwords.txt.gz

Answers
B.

gzip -d passwords.txt | passwords.txt.gz

C.

gzip -n passwords.txt > passwords.txt.gz

Answers
C.

gzip -n passwords.txt > passwords.txt.gz

D.

gzip -n passwords.txt < passwords.txt.gz

Answers
D.

gzip -n passwords.txt < passwords.txt.gz

Suggested answer: A

Explanation:

The gzip command with the -c flag outputs the compressed data to standard output, which can then be redirected to create a .gz file. This approach maintains the original file while creating a compressed version.

asked 18/10/2024
Said Jabri
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first