I am using Linux as an operating System. I want to some of the files to be Compress into a Zip files. But unfortunately I have forgotten how to compress the Zip files in Linux. Can anyone tell me what the command for compress /Decompress is?
I am using Linux as an operating System. I want to some of the files to be Compress into a Zip files. But unfortunately I have forgotten how to compress the Zip files in Linux. Can anyone tell me what the command for compress /Decompress is?
Normally in Linux, the Compression format is GZip (.Gz) format or Tarball (.Tar.gz).
You need to type the Following Command for Compress/Decompress.
- For Compress: zip-r filename.zip file_directory.
- For Decompress: filename.zip unzip-d destination
- For View content: unzip-v archive.zip
(Where r indicates that the contents of the directory to be compressed as well as sub-directories.)
There are another Compress/Decompress Also Available.
Following is the code for gz(gzip)
- For Compress in gz (gzip): gzip file-q (The file compresses it and rename it as "archive.gz")
- Unzip : gzip-d archive.gz (The file unzip it and leave it as a "file")
Note: gzip only compresses files, not directories.
Bookmarks