nQuote
asked on
File size is different in vi as opposed to when it is shown in the directory
I have a Linux ascii text file. The size shows 234642925 when I do: ls -l. However, when I do a vi on it, at the bottom the size shows as 234642973C where C is the number of characters. Can you anybody tell me why?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
it may be that ls shows the file size on disk (including partially allocated blocks). vi wouldn't care about that, just character count.