Solved

Question about "ls" command output

Posted on 2012-12-25
2
482 Views
Last Modified: 2012-12-25
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?
0
Comment
Question by:Thaidog
2 Comments
 
LVL 45

Accepted Solution

by:
Kdo earned 500 total points
ID: 38720040
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
0
 
LVL 16

Expert Comment

by:Peter Kwan
ID: 38720044
304 is the total number of blocks occupied.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question