View previous topic :: View next topic |
Author |
Message |
Sedrik l33t
Joined: 08 Apr 2005 Posts: 655 Location: Uppsala, Sweden
|
Posted: Mon Oct 09, 2006 10:55 pm Post subject: ls noob question. [Solved] |
|
|
I'm working on a OS course in school and we currently are investigating how ls works with listing directory and stuff (since we will implement our own OS in the end of the course) anyway one of the questions we have to answer is what does the number after Total mean when you type ls -l? We have read the man page but it is humoungus Can't find where the information is stored.
By doing man ls | grep Total we are on the track that it is the Total number of blocks occupied by the files currently listed. is that assumption correct?
Thanks for the help. _________________ From Gentoo with love
Last edited by Sedrik on Tue Oct 10, 2006 10:53 am; edited 1 time in total |
|
Back to top |
|
|
yoshi314 l33t
Joined: 30 Dec 2004 Posts: 850 Location: PL
|
Posted: Mon Oct 09, 2006 11:00 pm Post subject: |
|
|
just look for "-l" in the ls manpage .
total stands for total blocks, which represents total space occupied by files from that dir counted in 1024 byte blocks by default.
btw is "ls" an unsupported software? _________________ ~amd64
shrink your /usr/portage with squashfs+aufs |
|
Back to top |
|
|
Sedrik l33t
Joined: 08 Apr 2005 Posts: 655 Location: Uppsala, Sweden
|
Posted: Mon Oct 09, 2006 11:10 pm Post subject: |
|
|
thanks We checked -l but must have missed it.
Hmm maybe not, didn't know where to ask ^^ _________________ From Gentoo with love |
|
Back to top |
|
|
|