how to know size of a file

Davide Brini dbrini at
Tue Jul 1 01:20:53 PDT 2003

On Tue, 1 Jul 2003 00:49:16 -0700 (PDT),
layman <layman82 at> wrote:

> How to check the size of a (any) file (especially
> text) in linux using console ?

I'm sure there are many other methods, this is rather ugly:

cat filename | wc -c

or you can, of course, do a ls -l filename.txt and use awk or sed to
extract the filesize.

Unsubscribe: send email to listar at
and put 'unsubscribe blfs-support' in the subject header of the message

More information about the blfs-support mailing list