LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi,

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

Thanks,
Sagar
 
Old 08-06-2008, 10:05 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
The sum of the file sizes in the listing.
 
Old 08-06-2008, 10:10 AM   #3
matthewg42
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
Sugarboy
LQ Newbie
 
Registered: Aug 2008
Location: Hyderabad
Posts: 2

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


Reply


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


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

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