How to Zip and Unzip Directories on Linux

preview_player
Показать описание
If you're wondering how to compress and decompress files and directories in Linux, look no further. This video covers basic zip and unzip commands on Linux.

1:08 File/Directory Setup
1:33 Short explanation of what a 'tarbomb' is -- don't do this!
2:12 Archiving vs. Compression
2:37 Overhead in FTP and other protocols can be a great reason for creating archives
2:58 Zip command for archiving/compression
4:31 Unzip command for the inverse operation

Рекомендации по теме
Комментарии
Автор

1:26

*"Very secret naughty sites file"*

mamun.pw
Автор

clear, concise, leave all the fat out and its a wonderful thing, I used to think the decompression chamber was something you jumped into that helps you to maintain youth and viralitty.all seriousness aside, best explanation of the zip process hands up and hands down,

EM-mljq
Автор

Thank you for the video. Just one feedback: There was a lot of talking at the beginning, like a I wanted to leave after the two minute mark

div
Автор

Shortcut
You have "example.zip" and want to unzip just do this:
where is the file ? for example in Downloads
Write:
$ cd Downloads
$ unzip example.zip
$ ls
Now you will see two fills one for (example.zip) and one for (example).
In case you want to delete (example.zip) just write:
$ rm file.zip

mohameddoudou
Автор

Can pdf files I can create zip.file and tar file in server, it's helps to re-excute whole process of job

unknownprogrammingfacts
Автор

Thank you so much I’ve been tryna figure this out but tbh this was a very good clear talk through and helped me solve a Ctf problem I’ve been stuck on

markrushing
Автор

you just help me with that command I didn't know before. Thanks

stalinengoma
Автор

So I have a question, How do I zip or tar ..or any other means of archiving android top level folders and extract them onto another hard drive that preserves date created, date modified and date accessed and the timestamps are equal and match too ? I saw that star does that on fedora or red hat but I have no other spare hard drives so im using it on virtual machine. But, how would I preserve everything --date and time?

anmac
Автор

can there be one for games that are zipped?

CrimsonXYR
Автор

Do u have tutorial for connect ssh to different network?

jeremyheng
Автор

is there a way to exclude certain folders? so say I want all but 2 folders in a directory zipped how would I do that? Also how would I add the date to the file? I would like to upload certain folders regularly with the cron tab.

winecountrygames
Автор

Is the "decompression chamber" directory something you created yourself?

GuyThatJay
Автор

quite precise and clear - successful !

Arjun
Автор

I was unable to use

tree directory/
bash: command not found

Can anyone help me in this.

sagisateeshvarma
Автор

hi I'm using linux2.0 Brewster. I installed unzip but I still can't unzip unreal tournament file

damnation
Автор

im trying to download a 5 gig file.
everytime i get disconnected it STARTS OVER.
Whats up with that?

gravelman
Автор

Did you decide to make this video after re-reading that XKCD? :)

MikeDawson
Автор

Bhai I need help. I really want to run Linux on my laptop. It's an HP pavilion 14bf-125tx laptop with soundcard realtek alc295. I can't get the audio to work properly on Linux. I tried various distros- manjaro Fedora and pop os. All have the same issue. The sound is not loud enough. Probably the back speakers (or subwoofer) is not working properly. Please help.

hanitsharma
Автор

when trying to unzip I keep getting -bash: unzip: command not found? any recommendations would be great!

Newniche
Автор

How to Zip and Unzip Directories on Linux
My Notes:


Why do we use zip?
What does it do?


It takes many files and creates one file out of them
It is useful when you are dealing with Windows users


-


What does this command do:
zip -r zippeddocs.zip Documents/


We are zipping(archiving) all the files in the Documents/ directory into the zippeddocs.zip archive.
- it is being done to itself, so we use -r to show that it is recursively doing this action and zipping the contents inside zippeddocs.zip


-


What does this command do:
unzip zippeddocs.zip


Unzips a zip file


-


Tell me if there is anything that i missed.
Stay safe and have a great day.

samuraijack