DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-08-20 12:41:35

kelad
Member
Registered: 2009-07-28
Posts: 22

Unix command "ls -sk" to display size of file in 1k blocks is wrong

Hi
hope someone can help. If I ssh into the DNS-313 and

ls -l THE_MATRIX_REVOLTIONS.avi

gives 2079465472 bytes

ls -sk THE_MATRIX_REVOLTIONS.avi

gives 253841

This should be

2030728 = 2079465472 / 1024

Anyone know why this is not correct ?

Many Thanks

Offline

 

#2 2011-09-13 13:42:03

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Unix command "ls -sk" to display size of file in 1k blocks is wrong

Are you using an advanced format disk, by chance?

The size is given in multiples of 8kB. I wonder if -k is implemented as 'the number of sectors devided by 2'.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB