LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-08-2006, 04:56 AM   #1
syok
LQ Newbie
 
Registered: Jan 2006
Posts: 25

Rep: Reputation: 15
linux file compress


hello there,
i urgently need how to compress file in linux and acceptable to winzip in windows. Anybody please...

Did try but fail using command gzip filename
distro slackware 10.1
 
Old 02-08-2006, 05:15 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,224
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
If it's a file, run:
Code:
gzip filename
For directory:
Code:
zip -r dirname archivename
or
tar czvf archivename.tar.gz dirname

Last edited by bathory; 02-08-2006 at 05:33 AM.
 
Old 02-08-2006, 05:16 AM   #3
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Have you tried zip ? It creates the vanilla zip-files that can be opened by winZip and other Windows applications.

Its full path is /usr/bin/zip

Gzip is another program which compresses better, but does not create .zip compatible files, but .gz files. Most modern versions of winzip/powerarchiver/etc on Windows-platform can read .gz files as well. While zip creates both an archive and does compression, gzip only compresses. So to combine multiple files, you need to use tar first, or combine it (tar czvf yalla.tgz *.files_to_include)

-Y1
 
Old 02-08-2006, 06:46 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
zip new.zip list of files
or
zip new.zip *
etc

Last edited by dive; 02-08-2006 at 06:47 AM.
 
Old 02-14-2006, 06:01 PM   #5
syok
LQ Newbie
 
Registered: Jan 2006
Posts: 25

Original Poster
Rep: Reputation: 15
Oh ya it's ok now...thanks for the reply, long live slackware and the community...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the best way to compress image files in Linux? tgardner Linux - Software 2 06-03-2009 10:39 AM
How to compress video files to avi in linux Prasun Linux - Software 1 09-05-2005 06:22 PM
Compress and split a big sized file into smaller files hicham007 Programming 3 07-28-2005 08:56 PM
Linux Compress Ameii83 Linux - General 8 12-23-2004 08:17 PM
Compress Gins Linux - General 5 11-19-2004 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration