Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the linux znew command to convert the .Z package back to the .gz package

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you the use of linux's znew command to re-convert .Z package into .gz package. I hope you will gain a lot after reading this article. Let's discuss it together.

The znew command is used to convert the ".Z" package compressed with the compress command back to the ".gz" package compressed with the gzip command.

Syntax format: znew [parameters] [.Z compression package]

Common parameters:

-f enforces the conversion operation, that is, the target ".gz" already exists-t test the new file before deleting the original file-P use pipes to complete the conversion operation to reduce disk space usage

Reference example

Generate "linuxidc.gz" and delete the original .Z file in the process:

[root@linuxcool ~] # znew linuxidc.Z

Force the conversion operation, that is, the target ".gz" already exists:

[root@linuxcool] # znew-f linuxidc.Z

Displays details such as the name and percentage reduction of each compressed file:

[root@linuxcool] # znew-v linuxidc.Z

Test the new file before deleting the original file:

[root@linuxcool] # znew-t linuxidc.Z

Ensure that znew uses pipes for conversion to reduce disk space usage:

[root@linuxcool] # znew-P linuxidc.Z has finished reading this article. I believe you have some understanding of using linux's znew command to convert .Z package into .gz package. Want to know more about it. Welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report