Find the answer to your Linux question:
Results 1 to 3 of 3
hey everyone, like my name says im a newb in linux n i got a question if anyone can help please, i want to compress a whole folder i use ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    2

    archive


    hey everyone, like my name says im a newb in linux n i got a question if anyone can help please, i want to compress a whole folder i use pc linux OS, but im not sure hw to do it, il greatly appreciate any help.

  2. #2
    Linux Enthusiast
    Join Date
    Apr 2004
    Location
    UK
    Posts
    732
    There are several different ways to compress a directory. Open a shell window and try one of these.

    Code:
    tar czf foldername.tar.gz foldername/*
    tar makes one file out of many and the z flag runs it through gzip compression. For the same with better compression but slower use bzip2 compression

    Code:
    tar cjf foldername.tar.bz foldername/*
    Or simply make a zip out of it

    Code:
    zip foldername.zip foldername/*
    There are many, many more options, but those are the most common ones in my experience.

    Let us know how you get on,

    Chris...
    To be good, you must first be bad. "Newbie" is a rank, not a slight.

  3. #3
    Just Joined!
    Join Date
    Oct 2007
    Posts
    2
    tnx, i'l try dat n i'l let you kno how it went

  4. $spacer_open
    $spacer_close

Posting Permissions

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