Question about "ls" command output

Thaidog
Thaidog used Ask the Experts™
on
I had somebody ask me what the total 304 was in the below output:

Mac-Mini:RemoveSymantecMacFiles$ ls -l
total 304
-rwxrwxrwx@ 1 user1  staff   27159 Oct 19 19:18 ReadMe.txt
-rwxrwxrwx@ 1 tuser1  staff  125872 Oct 19 19:18 RemoveSymantecMacFiles.command
Mac-Mini:RemoveSymantecMacFiles$ 

Open in new window


Not sure what that is referring to. Can anyone explain?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hi dog,

That simply means that all of the files in the directory are using 304 "blocks" of disk storage.  A block is typically 512 bytes, so the total space on disk required to store the files is about 152K.


Good Luck,
Kent
Peter KwanAnalyst Programmer

Commented:
304 is the total number of blocks occupied.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial