In windows, one way to get the the directory size is by right-clicking on the dir then choose properties. In aix (ascii terminal), what is the equivalent command to get the directory size in bytes?
but it doesn't seem to be equal to the result i got when i add manually the size in each file inside the directory? why? do i have to multiply it with 1024 or the PP size?
du -k calculates the number of blocks used for each file. Standard AIX filesystems use a 4k block size so the smallest a file (w/ data) will be is 4k. Generally the only place this isn't true is on /home (by default it uses a 512 byte fragment).
That being the case du will always tell you how much the file is physically taking up in the file system.
If you want the actual number of bytes you could always try:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.