Sponsored Content
Full Discussion: Open .z file on solaris
Operating Systems Solaris Open .z file on solaris Post 302499444 by vgersh99 on Thursday 24th of February 2011 11:37:30 AM
Old 02-24-2011
try 'gunzip' (if you have it installed.
Usually the '.z' extension means the file has been compressed with 'pack':
'man pack' yields:
Code:
  pack
     The pack command attempts to store the specified files in  a
     compressed  form. Wherever possible (and useful), each input
     file file is replaced by a packed file file.z with the  same
     access  modes, access and modified dates, and owner as those
     of file. If pack is successful, file will be removed.


Last edited by vgersh99; 02-24-2011 at 01:02 PM.. Reason: changed gzip to gunzip
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to open *.pdg file under solaris?

*.pdgThanks in advance. (1 Reply)
Discussion started by: new_hand
1 Replies

2. What is on Your Mind?

Sun Solaris and Open Solaris?

What is the major difference between Sun Solaris 10 and Open Solaris? I believe both are free now, is that true? (3 Replies)
Discussion started by: yipster
3 Replies

3. Solaris

Open Solaris...............

Hi All, I have installed Open Solaris in a virtual machine.I feel it is something like linux.I am managing solaris servers. How i can use this for the betterment of my servers? (1 Reply)
Discussion started by: Renjesh
1 Replies

4. Solaris

open ports solaris 8

Hello, I have a number of Solaris 8 Sun servers that have open ports that I cannot identify. I see some with 1013-1023 (which are reserved ports according to the IANA. Lsof does not identify these. I rebooted the server and they went off, but this morning I saw they were all back on again. Any... (1 Reply)
Discussion started by: csgonan
1 Replies

5. Solaris

open solaris problem

hi i just successfully installed open solaris in my computer but now my mouse and cd drive wont work. i need to plug my mouse over again so that it would work and i dont know how to work my cd-drive need help. im new to the unis system. sorry for my bad english (2 Replies)
Discussion started by: rave03
2 Replies

6. Solaris

Open Solaris

Can anyone guide me what are the system requirement for open Solais and from where i will find is DVD or CD. I wanna learn it as system Admin. Do please guide me if some one knows anything about it. Thanks. Hitesh:) (12 Replies)
Discussion started by: hi2_t
12 Replies

7. Solaris

Open ports in solaris 10

hi guys, may i know the exact steps to open a port in solaris.i have some rough idea - which is adding the port number in /etc/services. but i am not sure the correct conventions, steps or any other steps. kindly advise.thanks guys ! (1 Reply)
Discussion started by: cromohawk
1 Replies

8. Red Hat

cannot set user id: Resource temporarily unavailable (not open file/open process related)

First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting. First, this is what's running: This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies

9. Solaris

Is it possible to install Solaris softwares on Open Solaris or Open Indiana?

Hi there, I'm sorry in advance if my question seems stupid, but I can't figure out myself. I was wondering. Is it possible to install a Solaris program on an Open Solaris or Open Indiana operating system? After searching the web for a long time, it seems that Open Solaris was released by... (7 Replies)
Discussion started by: firstpost
7 Replies

10. Solaris

Solaris 11 open exe file

I have a question about how can I open some exe file in Solaris OS? I have tried to install wine, but I found only old wine version to solaris 5.11. I think the file is too old. I use Solaris 11. I used that commands # bunzip2 Wine-1.1.2-solaris-5.11-i86pc.pkg.bz2 # pkgadd -d... (4 Replies)
Discussion started by: Tsuisou
4 Replies
pack(1) 							   User Commands							   pack(1)

NAME
pack, pcat, unpack - compress and expand files SYNOPSIS
pack [-f] [-] file... pcat file... unpack file... DESCRIPTION
pack The pack command attempts to store the specified files in a compressed form. Wherever possible (and useful), each input file file is replaced by a packed file file.z with the same access modes, access and modified dates, and owner as those of file. If pack is successful, file will be removed. The amount of compression obtained depends on the size of the input file and the character frequency distribution. Because a decoding tree forms the first part of each .z file, it is usually not worthwhile to pack files smaller than three blocks, unless the character frequency distribution is very skewed, which may occur with printer plots or pictures. Typically, text files are reduced to 60-75% of their original size. Load modules, which use a larger character set and have a more uniform distribution of characters, show little compression, the packed versions being about 90% of the original size. pack returns a value that is the number of files that it failed to compress. No packing will occur if: o the file appears to be already packed o the file name has more than 14 - 2 bytes o the file has links o the file is a directory o the file cannot be opened o the file is empty o no disk storage blocks will be saved by packing o a file called file.z already exists o the .z file cannot be created o an I/O error occurred during processing. The last segment of the file name must contain no more than 14 - 2 bytes to allow space for the appended .z extension. Directories cannot be compressed. pcat The pcat command does for packed files what cat(1) does for ordinary files, except that pcat cannot be used as a filter. The specified files are unpacked and written to the standard output. pcat returns the number of files it was unable to unpack. Failure may occur if: o the file cannot be opened; o the file does not appear to be the output of pack. unpack The unpack command expands files created by pack. For each file specified in the command, a search is made for a file called file.z (or just file, if file ends in .z). If this file appears to be a packed file, it is replaced by its expanded version. The new file has the .z suffix stripped from its name, and has the same access modes, access and modification dates, and owner as those of the packed file. unpack returns a value that is the number of files it was unable to unpack. Failure may occur for the same reasons that it may in pcat, as well as for the following: o a file with the ``unpacked'' name already exists; o the unpacked file cannot be created. o the filename (excluding the .z extension) has more than 14 bytes. OPTIONS
The following options are supported by pack: -f Forces packing of file. This is useful for causing an entire directory to be packed even if some of the files will not benefit. Packed files can be restored to their original form using unpack or pcat. OPERANDS
The following operands are supported: file A path name of a file to be packed, unpacked, or pcated; file can include or omit the .z suffix. - pack uses Huffman (minimum redundancy) codes on a byte-by-byte basis. If the - argument is used, an internal flag is set that causes the number of times each byte is used, its relative frequency, and the code for the byte to be printed on the standard output. Additional occurrences of - in place of file will cause the internal flag to be set and reset. USAGE
See largefile(5) for the description of the behavior of pack, pcat, and unpack when encountering files greater than or equal to 2 Gbyte ( 2 **31 bytes). EXAMPLES
Example 1: Viewing a Packed File To view a packed file named file.z use: example% pcat file.z or just: example% pcat file Example 2: Making and Unpacked Copy: To make an unpacked copy, say nnn, of a packed file named file.z (without destroying file.z) use the command: example% pcat file >nnn ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of pack, pcat, and unpack: LC_CTYPE, LC_MESSAGES, and NLSPATH. EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. The number of files the command failed to pack/unpack is returned. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWesu | +-----------------------------+-----------------------------+ |CSI |Enabled | +-----------------------------+-----------------------------+ SEE ALSO
cat(1), compress(1), zcat(1), attributes(5), environ(5), largefile( 5) SunOS 5.10 20 Dec 1996 pack(1)
All times are GMT -4. The time now is 10:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy