Solved

Question about "ls" command output

Posted on 2012-12-25
2
485 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 45

Accepted Solution

by:
Kent Olsen 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

751 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