LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 01-03-2017, 01:37 PM   #1
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
file size 2417896 should equal 2.3M, not 2.4M


Code:
ls -l testfile
 2417896 Jan  3 13:30 testfile
ls -lh testfile
 2.4M Jan  3 13:30 testfile
It should give
Code:
 2.3M Jan  3 13:30 testfile
Any thoughts on this?

Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com
 
Old 01-03-2017, 01:47 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
2.4 MB = 2.3 MiB
 
Old 01-03-2017, 04:53 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
yup MiB VS. MB
1024 VS. 1000
 
Old 01-03-2017, 07:00 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
also the 'human' readable output tends to be heavily rounded
 
Old 01-04-2017, 08:43 AM   #5
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Original Poster
Rep: Reputation: 17
Thanks for the responses.

Yes, I'm familiar with the differences between the binary method, and the decimal method. Back many years ago hard drive manufactures started using the decimal method instead of the binary method so as to make their drive sizes look bigger. The others followed suit so as to keep competitive. This has continued to today where Mi is now being used to differentiate.

It used to be that MB was always the binary method when dealing with computers. That was just the assumed standard.

Call me old fashioned if you want, but I prefer the old standard, since the root of how computers work is still binary.

Wayne Sallee
Wayne@WayneSallee.com
http://www.WayneSallee.com
 
  


Reply



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
[SOLVED] Non-system partition encryption versus container-file encryption of equal size Ulysses_ Linux - Security 13 07-17-2015 07:38 PM
Need 2 windows open at same time equal in size on one screen evodawg Linux - Desktop 10 06-18-2015 08:02 AM
A way to make (c)fdisk divide a drive into equal size partitions? bluesword1969 Linux - Software 1 02-11-2010 12:35 PM
use greater than or equal to operators on a file/output shabev Linux - Enterprise 3 03-25-2008 02:09 PM
Meta file does not equal check sum, Stuarts-Burgers Linux - Software 1 12-26-2007 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:45 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
Open Source Consulting | Domain Registration