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

The usage of the Linux basic command znew

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

Share

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

This article introduces the relevant knowledge of "the usage of the Linux basic command znew". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Znew

Compress compress into a ".Z" file and convert it into a ".gz" format. ZNew recompresses the file from the .z (compressed) format to the .gz (Gzip) format. If you want to recompress a file that is already in gzip format, rename the file to force the .z extension, and then apply znew.

The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.

1. Grammar

Znew [options] name.Z

2. List of options

Option

Description

-- help

Help information

-- version

Display command version information

-f

Forced conversion

-t

Test the newly generated .gz file before deleting the original .Z file

-v

Show details

-9

Use maximum compression ratio

-P

Use the plumbing function

-K

If the .Z file is smaller than the newly generated .gz file, keep the .Z file

3. Examples

Convert compressed files

[root@localhost weijie] # znew 1.Z

[root@localhost weijie] # ls

11.c 1.c.gz 1.gz 2.c 3.c 4.c 5.c 6.c ~ res.zip

This is the end of the introduction to "the usage of the Linux basic command znew". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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