LINUX CLASSES - COMPRESSION, ENCODING AND ENCRYPTION
Linux Zip and Unzip Command
How Do I Zip and Unzip Files With Linux? The zip and unzip Commands
The zip and unzip programs work almost exactly like their cousins PKZIP and PKUNZIP in the DOS environment. You can squash a bunch of files together into a zip file like this: zip squash.zip file1 file2 file3
Then you can extract the original files like this:
Most of the flags are the same as for PKZIP and PKUNZIP, but there are a few differences, so you might like to view the help with zip -h or unzip -h if you need anything fancier than the basic commands shown here.
If you use the -k flag when you zip a file under Linux, you can apply PKUNZIP to it under DOS. This flag tells zip to translate the Unix file and directory names into something that fits the more restrictive DOS naming conventions.
For example, if you have Linux files named another.longunix.filename and wontwork.withDOS, the -k flag will cause these files to be stored in the zip file as another.lon and wontwork.wit. If you don't use the -k flag, the PKUNZIP command under DOS will give you an error message and refuse to
create the files with the invalid names.
For more information on the zip command, see the zip manual.
Previous Lesson: Zmore and Zless
Next Lesson: Encoding and Decoding
[ RETURN TO INDEX ]
Comments - most recent first
(Please feel free to answer questions posted by others!)
(01 Apr 2013, 05:46
how to extract zip and rar file in Linux command line please tell me.
(25 Sep 2012, 06:31
How can a rar file can be extracted in linux
(28 Aug 2012, 07:55
I'm now wondering why seperate zip and unzip into 2 exes in linux, shouldn't there a parameter in zip to support unzip ?
(25 Mar 2012, 10:01
After I give you a few strokes with the banana I take it out and suck it. This time, she can't spit out a makeshift, loose-fitting gag and say "Stop.", the heavy, purpose-built strap holds the smothering foam very firmly in place. Furthermore, I was much too shy to even approach a girl my age to ask for a date, much less to ask for a piece of ass or a blowjob. If my erection
starts to wane, she bites harder and uses her fingernails to restore my virility. I still wanted to ask her some questions and finally last night I was able to make contact with her via phone. She unlocked the door and had no intention of inviting me in. " she demanded. We went to motel 6 in Sunnyvale and it was the night the last game of the world series was on. So goood." I have to go now. If I
didn't love her for other reasons, I'd be long gone.
(06 Feb 2012, 08:41
Please I would you to assist me get the best linux Billing Timer for cyber.
(27 May 2011, 21:58
i'm Sorry Windows still not strong enough to face the IBM technology the AS/400, this latter one shows a lot of strengths regarding security reliability and even organization. It's true that windows comes with a bench of GUI packages but still can not rely on it. I've been using Windows since its 95 edition but it didn't teach anything, as an end user you are much satisfied but
what about being a developer and not knowing what goes behind the scenes, besides linux shows you the architecture of the system and keeps you aware of every single taken action. Thanks
(23 Apr 2011, 12:45
Hi "Richard"... Linux (or GNU/Linux if you prefer to call it) is indeed a complete operating system. It runs on computers without any trace of the Windows operating system. It has all the system management, device driver, networking and user interface code. There are even thousands of programs written for the Linux platform (even word processing and office apps) which do not
require any part of Windows.
And yes, there ARE computers sold without Windows! They come with Linux installed, they have a slick graphical interface, and no Microsoft code.
BTW, I used IBM's OS/2 back in the
1990s and it was superior to Windows in many ways. It just wasn't marketed to the masses as well as Windows 95/98, which dominated the market then.
(21 Apr 2011, 21:55
Are you saying that this linux can run on a computer without windows underneath it, at all ? As in, without a boot disk, without any drivers, and without any services ?
That sounds preposterous to me.
If it were true (and I doubt it), then companies would be selling computers without a windows. This clearly is not happening, so there must be some error in your calculations. I hope you realise that windows is more than just Office ? Its a whole system that runs the computer from start to finish, and that is a very difficult thing to acheive. A lot
of people dont realise this.
Microsoft just spent $9 billion and many years to create Vista, so it does not sound reasonable that some new alternative could just snap into existence overnight like that. It would take billions of dollars and a massive effort to achieve. IBM tried, and spent a huge amount
of money developing OS/2 but could never keep up with Windows. Apple tried to create their own system for years, but finally gave up recently and moved to Intel and Microsoft.
Its just not possible that a freeware like the Linux could be extended to the point where it runs the entire computer from start
to finish, without using some of the more critical parts of windows. Not possible.
I think you need to re-examine your assumptions.
(21 Apr 2011, 21:52
I'm terribly sorry for interjecting another moment, but what I just told you is GNU/Linux is, in fact, just Linux, or as I've just now taken to calling it, Just.Linux. Linux apparently does happen to be a whole operating system unto itself and comprises a full OS as defined by POSIX.
Most computer users who run the entire Linux system every day already realize it. Through a peculiar turn of events, I was misled into calling the system "GNU/Linux", and until now, I was unaware that it is basically the Linux system, developed by the Linux project.
There really isn't a GNU/Linux, and I
really wasn't using it; it is an extraneous misrepresentation of the system that's being used. Linux is the operating system: the entire system made useful by its included corelibs, shell utilities, and other vital system components. The kernel is already an integral part of the Linux operating system, never confined useless by itself; it functions coherently within the context of the complete
Linux operating system. Linux is never used in combination with GNU accessories: the whole system is basically Linux without any GNU added, or Just.Linux. All the so-called "GNU/Linux" distributions are really distributions of Linux.
(19 Feb 2011, 00:08
(19 Nov 2010, 09:22
I shall apply the command soon.
(28 Jan 2010, 01:37
Thanks this is worked for me :-)
I welcome your comments. However... I am puzzled by many people who say "Please send me the Linux tutorial." This website *is* your Linux Tutorial! Read everything here, learn all you can, ask questions if you like. But
don't ask me to send what you already have. :-)
NO SPAM! If you post garbage, it will be deleted, and you will be banned.
Copyright © by Bob Rankin
All rights reserved - Redistribution is allowed only with permission.
More To Explore