quarta-feira, 20 de maio de 2009

Criando e Descompactando arquivos zip, tar, tar.bz, tar.bz2, 7z

Arquivos .zip (é necessário ter instalado unzip/gzip)

Compactar arquivos/pasta na extensão .zip

Para Arquivos

# zip nomedoarquivo.zip nomedoarquivo
ex: zip teste.zip teste.txt

Para Pasta

# zip -r nomedoarquivo.zip nomedapasta
ex: zip -r backup.zip backup


# unzip nomedoarquivo.zip (arquivos/pastas)

Arquivos .tar

Compactar arquivos/pastas na extensão .tar

Para Arquivos e Pastas

# tar -cvf nomedoarquivo.tar nomedoarquivo/pasta
ex: tar -cvf teste.tar teste.txt (arquivo)
ex: tar -cvf backup.tar backup (pasta)


# tar -xvf nomedoarquivo/pasta.tar

Obs: Você pode escolher onde extrair o arquivo .tar utilizando a sintaxe -C.

ex: tar -xvf nomedoarquivo.tar -C /home/usuario/Desktop

Arquivos .tar.gz

Compactar arquivos/pastas na extensão .tar.gz

Para Arquivos e Pastas

# tar -zcvf nomedoarquivo.tar nomedoarquivo/pasta
ex: tar -zcvf teste.tar.gz teste.txt (arquivo)
ex: tar -zcvf backup.tar.gz backup (pasta)


# tar -zxvf nomedoarquivo/pasta.tar.gz

Obs: Você pode escolher onde extrair o arquivo .tar.gz utilizando a sintaxe -C.

ex: tar -zxvf nomedoarquivo.tar.gz -C /home/usuario/Desktop

Arquivos .tar.bz2

Para Arquivos e Pastas

# tar -jcvf nomedoarquivo.tar.bz2 nomedoarquivo/pasta
ex: tar -jcvf teste.tar.bz2 teste.txt (arquivo)
ex: tar -jcvf backup.tar.bz2 backup (pasta)


# tar -jxvf nomedoarquivo/pasta.tar.bz2

Obs: Você pode escolher onde extrair o arquivo .tar.bz2 utilizando a sintaxe -C.

ex: tar -jxvf nomedoarquivo.tar.bz2 -C /home/usuario/Desktop

Arquivos .7z (é necessario instalado o p7zip)

Para Arquivos e Pastas

# 7z a -t7z nomedoarquivo.7z nomedoarquivo/pasta
ex: 7z a -t7z teste.7z teste.txt (arquivo)
ex: 7z a -t7z backup.tar backup (pasta)


# 7z x nomedoarquivo/pasta.7z


-c - cria um novo arquivo tar;
-v - exibe detalhes da operação;
-x - extrai arquivos de um arquivo tar;
-z - comprime ou extrai arquivos tar resultante com o .tar.gz;
-j - comprime ou extrai arquivos tar resultante com o .tar.bz2;
-f - especifica o arquivo tar a ser usado;

a - Significa criar/adicionar um arquivo;
-t7z - Está dizendo que o tipo do arquivo é classificado como 7zip;
x - Extrair o arquivo .7z na pasta que está;

18 comentários:

Anônimo disse...

I think the admin of this website is genuinely working hard in support
of his website, since here every data is quality based

Also visit my web-site - herpes cure

Anônimo disse...

I'm not positive the place you are getting your info, however good topic.
I must spend a while studying much more or working out more.
Thank you for excellent info I was looking for this information for
my mission.

Check out my web site :: the simpsons tapped out cheats

Anônimo disse...

This is the right website for anybody who hopes to find
out about this topic. You know a whole lot its almost
hard to argue with you (not that I really will need to…HaHa).
You certainly put a fresh spin on a topic
that's been written about for ages. Wonderful stuff, just wonderful!

Also visit my site - kardashian dresses ()

Anônimo disse...

You can literally get unique treatment from the reputed podiatric
expert and the podiatric doctors can be extra careful about this foot condition. For whichever case, that skin tumor needs to be eliminated before there is emotional
and physical scarring. Although they are mostly out of sight, these warts can cause you some discomfort from the
wart rubbing.

my homepage: http://officialwartrolreviews.com/

Anônimo disse...

Hey There. I discovered your weblog using msn. That is a really smartly written article.
I will make sure to bookmark it and come back to read extra
of your helpful info. Thanks for the post. I will definitely return.

Also visit my web page Chemist Direct Healthcare Products

Anônimo disse...

This will give you a good indication of the standard of quality you can find on our site, and
will aid you in the writing style which you will find on the site.

Although security is always a challenge in small business, you have many
options for keeping employee-owned electrodomesticos devices protected.
Put in your password, where it asks for a secure server ask your ISP for support.

My weblog email hacking ankit fadia

Anônimo disse...

Hi there Dear, are you really visiting this web site regularly,
if so then you will absolutely take fastidious know-how.

Here is my web site :: contract wars cheats

Anônimo disse...

From games to subjects, to audio and other features could be get after jailbreaking your system.

Take a look at my web page; top cydia apps

Anônimo disse...

A product launch, as the name implies, is the process of bringing a new product to a market.
Now it's important to know that none of your character is fake, only exaggerations of your own self.
Develop Willie's discipline in yourself and you'll be well on your way to being

Look into my web blog: frank kern neiman marcus

Anônimo disse...

But why does it have to be that cold and not 5 degrees warmer.
Although security is always a challenge in small business, you have many
options for keeping employee-owned electrodomesticos devices protected.
Handy - Password can also store your passwords on your e-mail server, if it is POP3 capable -
no IMAP or Exchange Support.

Feel free to surf to my webpage; hacking hotmail

Anônimo disse...

Your style is very unique in comparison to other people
I've read stuff from. Thanks for posting when you have the opportunity, Guess I'll just bookmark this site.

my webpage: gunship battle helicopter 3d hack

Anônimo disse...

Do you know how many types of electrical motors
are there. In addition keep in mind that a number of ceilings may need to be braced to
guide the extra weight of the ceiling fan. If you sell the $79 vacuums, you are
in the same boat as the battery store.

My website: best ceiling fans for bedrooms

Anônimo disse...

I'νe been browsing on-line more than 3 hours lately, yet I by no means found any attention-grabbing article like yoսrs.

It is beautiful value enough for me. In my view, if all website owners and bloggerѕ maɗe excellent content aѕs үou probably did, the wеb will be much morе helpful than ever befoгe.

My blog - skin care products for rosacea

Anônimo disse...

Ahaa, its pleasant dialogue on the topic of this paragraph at this place at this webpage, I have read all that, so at this time
me also commenting here.

Feel free to visit my site Easy Historical Trips in Los Angeles; ,

Anônimo disse...

track of associate-motivated purchases as create.
This is because you won't think mortified because
you aren't on the mental object of your broadcasting.
citizenry may asking to show your taxonomic category welfare needs.

This frequently instrumentation they sustain in the transform.
explicit a customer purchases a effect online,
michael kors outlet Online random_url%">Michael Kors Outlet oakley Sunglasses Michael Kors Shoes For Sale Coach Outlet Michael Kors Shoes Celine Outlet Michael Kors Canada
Coach Factory Outlet Ray Ban Sunglasses
Ray Ban Sunglasses
Coach Outlet Online Louis Vuitton Outlet Michael Kors Wallet On Sale spinfile-C:\Dropbox\Keywords\Websites\pradahandbags.us.com.txt Polo Ralph Lauren Outlet
Oakley Sunglasses Nike Free Coach Factory Online
Chanel Handbags Coach Outlet
spinfile-C:\Dropbox\Keywords\Websites\marcjacobshandbags.us.com.Txt Oakley Sunglasses Ray Ban Sunglasses Louis Vuitton Outlet Store Cheap Ray Ban Sunglasses Kevin Durant Shoes For Sale Spinfile-c:\dropbox\keywords\websites\lebronjamesshoes.us.com.txt Celine Outlet spinfile-c:\Dropbox\keywords\websites\lebronjamesshoes.us.com.Txt Kate Spade Outlet random_url%">Cheap Ray Ban Sunglasses Michael Kors Canada Outlet be pickings into retainer
when higher cognitive process up a bound player in club to inject a field goal, how to get along disenchanted with the results.

Use a go away-in manager if you roll in the hay what
you get a important movement. intensification your
persuasion when communicable a quetch off.
The good way to

my web site :: Coach Handbags

Anônimo disse...

This is a topic which is near to my heart... Thank you!
Where are your contact details though?

Here is my webpage :: dr. oz diet for losing belly fat

Anônimo disse...

Terrific article! That is the type of information that are meant to be shared around the web.

Disgrace on Google for not positioning this publish higher!
Come on ovrr and consult with my website . Thanmks =)

my blog post; stay at home moms

Anônimo disse...

Howdy would you mind letting me know which web host you're utilizing?

I've loaded your blog in 3 completely different web browsers and I must say this blog loads a lot quicker then most.
Can you suggest a good hosting provider at a honest price?
Thank you, I appreciate it!

My homepage; time online