Logo 
Search:

Unix / Linux / Ubuntu Articles

Submit Article
Home » Articles » Unix / Linux / Ubuntu » CommandsRSS Feeds

Compress and expand data - compress / uncompress

Posted By: Shruti Sharma     Category: Unix / Linux / Ubuntu     Views: 4035

This article explains about compress / uncompress command with an example in unix.

compress / uncompress command is used to compress and expand data in unix.

Syntax of compress / uncompress Command

compress [- options] filenames 

uncompress [- options] [file]

Example of compress / uncompress Command

Example 1 : Compress the file name zenith and print compression information to the terminal

compress -v zenith

Example 2 : Undo the compression by typing either of following commands

uncompress zenith.Z

compress -d zenith.Z
 
  
Share: 


Didn't find what you were looking for? Find more on Compress and expand data - compress / uncompress Or get search suggestion and latest updates.

Shruti Sharma
Shruti Sharma author of Compress and expand data - compress / uncompress is from United States. Shruti Sharma says Hello Everyone,
I am Shruti Sharma from United States
 
View All Articles

 

Other Interesting Articles in Unix / Linux / Ubuntu:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!