Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2001
    Location
    Somewhere you're not
    Posts
    239

    Question Creating tarballs (or something like them)...

    What is the best way to put all of the files and folders in a directory into one single file? And what is the command to do it on a Linux machine?

  2. #2
    Join Date
    Dec 2001
    Posts
    1,029
    tar czf file.tar.gz directory
    ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

  3. #3
    Join Date
    Apr 2001
    Location
    Palm Beach, FL
    Posts
    1,097
    or if you want it gzip'd:

    tar zcvf file.tgz directory

  4. #4
    To clarify allera's post, the first reply already had the gzip switch in, that's what the z is for

    The additional switch was v which turns on verify.

  5. #5
    Join Date
    Mar 2002
    Location
    Servers
    Posts
    806
    Originally posted by chirpy
    The additional switch was v which turns on verify.
    v is for verbose
    × Dedicated Servers × cPanel Shared/Reseller Hosting
    × VPS × Backups × Cloud × Colocation × Managed Services
    × Webx Networks × Serving world wide since 1997

  6. #6
    Quite right, should have checked what _I_ posted when correcting someone

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •