Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Have a look at this screenshot:

Terminal Commands

Pardon for my language used when I installed Ubuntu. Anyways, it is beyond my imagination how come creating an empty file actually creates eight files, alas, the extra seven won't be listed more than have their saying in the statistics. The total column clearly says eight. I'm using Ubuntu 12.10 x86. Also, in my Nautilus file explorer, I have checked the option to view hidden and system files. Maneuvering to the new someDir directory won't show more than just one file, the someFile file. So is the total count lying in my face or are there even more hidden files than the "ordinary" hidden files? I'm keen to know exactly what files gets created here, why so, and how come I can't list them.

As a side note, adding the sudo prefix to the ls -l command won't make any difference for me.

Thank you so much in advance.

share|improve this question
up vote 2 down vote accepted

From ls Man Page for OSX (i expect its the same on linux, but i dont have 1 handy to test atm)

-l (The lowercase letter ``ell''.) List in long format. (See below.) If the output is to a terminal, a total sum for all the file sizes is output on a line before the long listing.

So the number is the sum of file size, and not a count of number of files.

share|improve this answer
oh well that makes sense =) My man command won't print that info. All he says is "use a long listing format". But I get more info if I type the command info coreutils 'ls invocation', this page says that the count is "'total BLOCKS', where BLOCKS is the total disk allocation for all files in that directory." – Martin Andersson Nov 5 '12 at 12:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.