du -h vs ls -la
Hi
I created a directed u directory X. I entered the dir with #cd x - Then i did #ls -la The first line with the . entry was showing the size to be 1024. - But when i did #du -h /x it was giving 2k... Both the cases are showing the size of the same dir..but the r not the same.... why is the diff there.... am i reght assuming that both should be exactly the same... Regards |
Try removing the -h option, then you might be able to get a better idea. ls -la is showing you both the . and the above directory .., and totalling the 2.
Here's what I get (I use 4k blocks): Code:
mkdir word Cool |
All times are GMT -5. The time now is 01:23 AM. |