Checking directory size

2007-12-25 11:38:00

Here's my origional question:

>Hiya -

>

>This may be a little trivial - but I can't seem to find an answer. How

>do I find the total size occupied by a number of files in a directory?

>There doesn't seem to be an ls switch which reports this, and the ls

>list of the driectory itself only shows the directory entry size....not

>the combined size of all the files it contains.

>

>Apologies for my ignorance :-)

>

>Mark.

And the answer:

du -sk filename - gives the size of the file/directory in Kb

du -s filename - gives the size of the file in blocks

Thanks to y'all for responding so promptly to my request. Got yer

answers before I got a copy of my own request! :-)

Mark.

Comments

Got something to say?

You must be logged in to post a comment.