Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to avoid the creation of an archive because it takes a significant amount of time and CPU power, since i have to transfer a big folder among different filesystem i would like to have all the data in just 1 file.

share|improve this question
I don't get it: You want to create an archive ("just 1 file") without creating an archive? – ohno Jul 4 '12 at 18:58
@ohno the archive is usually compressed, i don't care if the resulting file is big, i just do not want the data to be fragmented. – user827992 Jul 4 '12 at 18:59
up vote 5 down vote accepted

You need tar. Read the funny manpage:-) tar does not compress (unless you tell it to).

tar cf tarname.tar the_directory_you_want_to_archive/ will create one file: tarname.tar. You can extract with tar xf tarname.tar later.

If the files you wish to archive reside in different directories, simply add each one to the command line like so: tar cf tarname.tar dir1/file1 dir2/file2 dir3/file3. This will create an archive containing the files 'file1', 'file2' and 'file3'.

share|improve this answer
agreed but also I think Gzip desktop can do this with GUI if any one is intrested – Mark Kirby Jul 4 '12 at 19:49

In all of the ,buntus, I always install 7z file compression. It is freeware, and can handle RAR compression if you need it. Best of all, it is a Graphic User Interface program, so nO fAnCy CoMmaNd lInE fussiness and intolerance.

Both ZIP & 7Z file compression are recognized by most operating systems. TAR, etc tends to be just Unix-type operating systems. 7Z also compresses to smaller file sizes. The 'time' compressing is small, compared to the transfer-time to another computer or storage drive.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.