I am getting the same output. What is the diffrence between file size and disk usage?
Disk used is literally disk used, by the cluster or cluster-equivalent. Files smaller than the minimum cluster size may still occupy the full cluster. Observe an empty file taking up four kilobytes of space:
This may vary depending on your system and filesystem, but that's the point -- it varies, it's not an exact measure of the file.
An even weirder case is sparse files, which have empty "holes" in them that take no disk space. Here's a disk image I made with ntfsclone:
Using du on a sparse file will give you a very wrong impression about file size!
Last edited by Corona688; 04-12-2011 at 11:34 AM..
Hello guys,
Please i need to know the biggest files in my directory let's say$
>du -h | egrep 'M|G|G'
195M ./TMP
3.6M ./TP_DEC2012
146G .
But here the result it's giving me the biggest directory in the path.
Actually i want to know the biggest file in 146G .
Can anyone... (6 Replies)
Hi,
The blow code does not yeild any output.
find . -name "*.jar" -o -name "*.ksh" -o -name "*.properties" -name "*.war" -o -name "*.ear" -o -name "*.sh" -o -name "*.cfg" -exec ls -l {} \;
I wish to print the filename filesize filedate in HP-UX.
Can anyone help ? (9 Replies)
Hello, all!
Working in a Bourne shell. What command would list the filename and size of a file if the size of the file had to be bigger than $a and smaller than $b?
Output (if $a is 10 bytes and $b is 50 bytes):test1.txt 15
test2.txt 30
test3.txt 50
Thanks,
Ann :p (3 Replies)
Hi,
I want to display all the directories with ascending order in size. For example,
$ du -k .
1111111 ./dir1
222222222 ./dir2
333333333 ./dir3
444444444 ./dir4
How do i get the above desired result with du -k . command?
Thanks (1 Reply)
Hi all,
Is there any built in function that can display the content of a directory showing the size of directories?
I want to see the content of a directory without recursion. I don't want to see the content of all subdirectories.
I want to see the contained files with their size and the... (6 Replies)
Hi,
How can i increase the size of my display on AIX 5.3.What i mean is e.g if i do and ps -ef i would get some like:
/data/app/oracle/product/10.2
/usr/bin/ksh /usr/local/bin/s
i want it to show the whole thing on the screen without cutting it,because there is still space on the screen... (0 Replies)
Hi Genius,
I would like to display filesystem size that cross 75% as used using df -k.
I would thank in advance for your answer.
Thanks and Regards,
HAA (2 Replies)
Hi Friends,
I'm a Oracle Dba first time working in Solaris, i have worked on linux (redhat). I want to see the size of the particular directory e.g oracle and also the size of the database files.
Thank you (1 Reply)