• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 800
  • Last Modified:

tar file max size

Can someone tell me, what is the largest tar file that can be created in UNIX in GB
3 Solutions
Nick UpsonPrincipal Operations EngineerCommented:
the biggest file that can go onto the filesystem type (ext, nfs, ...) you are writing it to
Historically, 2Gb (Assuming ulimit, filesystem settings & physical space allowed); GNU tar and most current Unixen allow larger files.  Check `man tar` for your OS and version
Greens8301Author Commented:
Is there a limit on the target .tar file size itself
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Nick UpsonPrincipal Operations EngineerCommented:
I don't see how "Is there a limit on the target .tar file size itself" differs in meaning from the original question
What Unix flavour and version are you running tar on?  
It depends on the followings :
1) Does your OS support large files?
2) What version of tar are you using?
3) What is the underlying file system?

You can cheeck /usr/include/sys/features.h for any line containing 'FILE_OFFSET_BITS'. If there
is, your OS very very probably has support for large files.

If you OS doesn't support large file, you have 2GB limit.

The size of files you put into a tar archive (not the archive itself)
is limited to 11 octal digits, the max. size of a single file is 68 GBytes.

The OS native tar command has the limit of 2GB, the GNU tar
can handle large files as long as your OS and filesystem type support it.
POSIX standard does not allow files larger than 2G into .tar file. Most systems do allow.
Greens8301Author Commented:
Thanks for all your help and answers. From the responses, I gatjer that max limit for 1 file is 2 Gb safely and max size for the whole archive is 66 GB This is very useful

Does ant one familiar with MKS emulator on windows 2003. I have a question on MKS "xterm" question. Not sure what topic the questions on MKS go in

Thanks All
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now