Friday, July 12, 2013
2 comments

zip and unzip command in linux

9:09 AM

this is some command for using "zip" and "unzip" in linux.

first you need to install "zip" and "unzip" application into your linux machine, this how to install it.

apt-get install zip
apt-get install unzip
but if you are is fedora / red hat user you can use "yum" command to install "zip" and "unzip" application.

yum install zip
yum install unzip

- Zipping command

 1. below is the command to compress all directory file into a zip, the compressed file will put in the current directory.
zip archive *
it will create "archive.zip" containing the directory file.

2. below is the commant to compress some file into a zip, the compressed file will put in the current directory.
zip archive doc1 doc2 doc3
it will create "archive.zip" containing doc1, doc2, and doc3 file.

3. below is command to zip up an entire directory (including all subdirectories)
zip -r archive * 
4. below command will copyng the  "media" directory , located in the current directory, into "archive.zip".
zip -r archive media 
5. below command will copyng the "/home/edho/media" directory into "archive.zip".
zip -r archive /home/edho/media 

 - Unzipping Command 

below command will unzip the "archive.zip" to the current directory.
unzip archive.zip

2 comments:

  1. From Mansfield to Karloff, something is lost in the translation. MONDO BALORDO takes a more serious tone than its top-billed co-feature, and the result is a product that loses by comparison. Well not just by comparison: MONDO BALORDO is an inferior film all on its own. Taking us around the world to show us various curiosities like drag clubs, lesbian hang-outs, lions killing zebras and a guy who thinks he's Rudolph Valentino's reincarnation (but looks more like a runner-up in the Udo Kier look-alike contest), the movie proves to be a collection of poorly slapped together scenes. It doesn't help much that Mr. Karloff's narration rambles, nor that the best moment occurs at the beginning of the film. but, oh what a moment. Franz Drago, a 27-inch tall singer (well, lip singer is more like it), performs an energetic dance to a classic Louie Prima tune as a full band pretends replica wathces to play along. What's more is it's even better then it sounds, for Mr. Drago really puts on the moves and reminds prada handbags one of the equally talented Billy Barty during his days with Spike Jones. Still, that's not enough to save the day and the movie falls immediately afterwards to a pedestrian level where it comfortably stays.

    ReplyDelete
  2. service provider, you will be offered attractive discounts. So, you can opt for online appointments. Top Rated Washer Repair Service in Riverside

    ReplyDelete

 
Toggle Footer
Top