Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-06-2008, 09:43 AM   #1
LQ Newbie
Registered: Aug 2008
Location: Hyderabad
Posts: 2

Rep: Reputation: 0
What does 'total' in the long listing(ls -l) refer to ?


Could you please let me know What does 'total' in the long listing(ls -l) refer to ?

Old 08-06-2008, 10:05 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
The sum of the file sizes in the listing.
Old 08-06-2008, 10:10 AM   #3
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
It is the total disk space taken up by the files in the directory. This includes the size of sub-directories (but not their contents - the directory itself uses some space to record the names of it's contents and file meta data).

Note that the total space used is rounded up because each file takes an integer number of blocks on the device - once a block is used by a file, the whole block is un-available for other files, even if the amount of space used within the block is very small.

A typical block size is 4k, so the total amount will usually be some multiple of 4.
Old 08-07-2008, 03:00 AM   #4
LQ Newbie
Registered: Aug 2008
Location: Hyderabad
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks Much Matthew....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
refer whole server traffic t0bias Linux - Server 3 06-12-2008 11:03 AM
Refer to the mount.cifs(8) manual page bnebradd Linux - Networking 11 04-07-2007 04:40 AM
long listing using ls -l command display year or time of the file mnd_world Linux - Newbie 1 05-20-2004 12:39 PM
HP-UX AR OE what do they refer to, differences murugesan Linux - Distributions 0 04-19-2004 12:39 AM
help with long listing + locate stabu Linux - Newbie 2 04-03-2004 06:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration