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

    Du command question.


    Sorry, wrong section.. Mods please delete this one

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,104
    There is a difference in the size of a file and how much disk space that file consumes. How much space does a 1 byte file take up? Answer: depends on the block size of drive. So if you have a 1024 byte block a 1 byte long file will take up 1024 bytes of disk space. So it all depends on what you are measuring file length or disk space used.

  3. #3
    Quote Originally Posted by gogalthorp View Post
    There is a difference in the size of a file and how much disk space that file consumes. How much space does a 1 byte file take up? Answer: depends on the block size of drive. So if you have a 1024 byte block a 1 byte long file will take up 1024 bytes of disk space. So it all depends on what you are measuring file length or disk space used.
    Oh, I see.
    So du will list the actual file sizes, and then in the grand total, it will show how much space it is actually taking in the disk?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,104
    Yep do an info du it says disk space used.

  6. #5
    Thank you gogalthorp the Linux Guru!
    Your lightning fast and very helpful repies are very very much appreciated!

Posting Permissions

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