Sponsored Content
Operating Systems Solaris Any slick way to go from Z to gz?? Post 302557851 by Scott on Thursday 22nd of September 2011 08:47:52 AM
Old 09-22-2011
You must have enough free space to accomodate the new .gz file, before deleting the .Z file. The .Z file itself is not uncompressed to disk.

Even if gzip could further compress the .Z file, you still need enough space to store the .gz file while it's being created.

If space is so tight that you don't have enough room for the .gz file, then gzip it to another filesystem first. And depending on what's in the file, and the size and number of files, there's no guarantee that gzip will save you much anyway.
 
GZNEW(1)						      General Commands Manual							  GZNEW(1)

NAME
gznew - recompress .Z files to .gz files SYNOPSIS
gznew [ -ftv9PK] [ name.Z ... ] DESCRIPTION
gznew recompresses files from .Z (compress) format to .gz (gzip) format. If you want to recompress a file already in gzip format, rename the file to force a .Z extension then apply gznew. OPTIONS
-f Force recompression from .Z to .gz format even if a .gz file already exists. -t Tests the new files before deleting originals. -v Verbose. Display the name and percentage reduction for each file compressed. -9 Use the slowest compression method (optimal compression). -P Use pipes for the conversion to reduce disk space usage. -K Keep a .Z file when it is smaller than the .gz file SEE ALSO
gzip(1), gzmore(1), gzdiff(1), gzgrep(1), gzforce(1), gzexe(1), compress(1) BUGS
gznew does not maintain the time stamp with the -P option if cpmod(1) is not available and touch(1) does not support the -r option. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWgzip | +--------------------+-----------------+ |Interface Stability | External | +--------------------+-----------------+ NOTES
Source for gzip is available in the SUNWgzipS package. GZNEW(1)
All times are GMT -4. The time now is 08:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy