Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    why is tar file showing different files/size to directory

    hi all,

    why am i getting different file counts and different size for the same directory and tar file, they are the same directory i have made into a tar so i really dont get it

    tar -tf /vol/cha-archive/audio/Even\ When\ I\ Fall\ -\ January\ 2017\ Project.tar | wc -l

    root@archive:/ # find /vol/cha-work/_ARCHIVE/to_be_archived/audio/chad_r/2017-05-17/Even\ When\ I\ Fall\ -\ January\ 2017\ Project/ -type f | wc -l

    137G /vol/cha-archive/audio/Even When I Fall - January 2017 Project.tar

    138G /vol/cha-work/_ARCHIVE/to_be_archived/audio/chad_r/2017-05-17/Even When I Fall - January 2017 Project/

    many thanks,


  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Files stored in tar files are sized to the file system block size, not the physical size of the file. When you extract it from the tar file it will be readjusted to the original file size. So, are you having restore problems with your data?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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