Welcome, Guest. Please login or register.

Author Topic: tarball or gzip doing on unix  (Read 2229 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline elendil

  • Sr. Member
  • ****
  • Join Date: Nov 2002
  • Posts: 324
    • Show all replies
    • http://www.idiot.fnuck.dk
Re: tarball or gzip doing on unix
« on: July 21, 2004, 11:40:21 AM »
Quick answer: tar czf .

a bit longer:
c - create archive
z - gzip compression
f - filename

You don't need z if you don't want it compressed. Using x (extract archive) instead of c does the opposite when you want your files back.

I don't know, but I'm sure it's also possible to either use wildcards or just type the list of files you want to have tarred instead of , if you prefer.

Sincerely,

-Kenneth Straarup.

EDIT: the flags can come in any order, btw, cfz fzc, etc, afaik. It may depend on tar implementation, though.