11-19-2010
The reason is that each directory entry uses up some space in the form of inodes, which are calculated against the directory's size. It doesn't consume any space on the disk, since the inodes are marked as useable again when the files are removed, but the directory will still retain its maximum "size" in ls output.
This User Gave Thanks to pludi For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
$ls -lrt mydir
total 12
drwxrwxrwx 2 nobody nobody 512 Aug 8 11:51 tmp
drwxrwxrwx 2 nobody nobody 4608 Jan 19 12:20 web.cache
$ ls -lrt mydir/web.cache/
total 0
$ ls -lrt mydir/tmp/
total 0
Can anyone explain me the above results? I know the o/p of ls, but this... (3 Replies)
Discussion started by: rahulrathod
3 Replies
2. Shell Programming and Scripting
Hi,
I am using ksh.
I have to find wether data file has EOL or not. as per my knowledge we can easily find by checking each character. But this is a tedious job as per my requirement because my data file size is very big . It may be in 25-30 MB.
So please advice me how i can check wether... (4 Replies)
Discussion started by: HariRaju
4 Replies
3. UNIX for Dummies Questions & Answers
Hello,
Can some please tell me how to change the font size when I print a document from SCO Unixware 7.1? :confused:
The fonts are showing up too big when printing and part of the text is cut off on the edges of the documet...
Any help is appreciated.
Thanks (6 Replies)
Discussion started by: George26
6 Replies
4. Shell Programming and Scripting
Hi,
I have one file stat.
Stat file contents are as follows: for example.
H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000
H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000
Now i... (1 Reply)
Discussion started by: davidpreml
1 Replies
5. Solaris
Hi all,
I'm working on Solaris and quite often I receive the alert message of file system at 90%.
I'd like to find which files caused this happens (at least the biggest files) with the following command:
find . -size +10000000c -exec ls -larth {} \;
This looks for every file in every fs... (4 Replies)
Discussion started by: Evan
4 Replies
6. Shell Programming and Scripting
Hi all,
Could you please tellme the commadn which sorts the list of directories in a parent dir by their size.
Thanks. (2 Replies)
Discussion started by: firestar
2 Replies
7. UNIX for Dummies Questions & Answers
Hello,
Can somebody please explain why I have EMPTY directories on HP-UX with BIG SIZE ?
Thank you !
Double post, continued here (0 Replies)
Discussion started by: drbiloukos
0 Replies
8. Red Hat
Hi,
I've some directory that I used as working directory for a program. At the end of the procedure, the content is deleted. This directory, when I do a ls -l, appears to still take up some space. After a little research, I've seen on a another board of this forum that it's not really taking... (5 Replies)
Discussion started by: bdx
5 Replies
9. Shell Programming and Scripting
To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies
10. Red Hat
Hi ,
My linux server is taking more time to calculate big size from long time.
* i am accessing server through ssh
* commands
# - du -sh *
#du -sh * | sort -n | grep G
Please guide me for fast way to find big size directories under to / partition
Thanks (8 Replies)
Discussion started by: Nats
8 Replies