Skip to main content

ls command

More
20 years 3 months ago #4833 by steveb12
ls command was created by steveb12
Hey guys. This is in reference to the ls -l command output. Can someone tell me what the the line total # means?

Example:

$ls -l
total 4
drwxr-xr-x 2 username group 4096 Sep 2 19:25 temp2

Thanks!
More
20 years 3 months ago #4843 by The_Berzerker
Replied by The_Berzerker on topic Re: ls command
<total 4> refers to the amount of blocks used by the files on the hard drive. Each block is usually either 512 or 1024 characters.
More
20 years 3 months ago #4858 by sahirh
Replied by sahirh on topic Re: ls command
Now theres something I didn't know

Sahir Hidayatullah.
Firewall.cx Staff - Associate Editor & Security Advisor
tftfotw.blogspot.com
More
20 years 3 months ago #4904 by steveb12
Replied by steveb12 on topic Got it.
Thanks a bunch.
More
20 years 3 months ago #4914 by Chris
Replied by Chris on topic Re: ls command
Now there's something that has been taunting me for a long time ....Berzerker, thanks for the answer!

Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
More
20 years 3 months ago #4931 by The_Berzerker
Replied by The_Berzerker on topic Re: ls command
Welcome... The info was taken from the book "Unix Programming Environment" written by Brian W. Kernighan and Rob Pike (translated in Greek :? ).
It's a good book for reference...
Time to create page: 0.139 seconds