Results 1 to 2 of 2

Thread: using ls to display size of files

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Beans
    70

    using ls to display size of files

    Hello...

    ls -s displays the size of a file in blocks...

    A file A with 12072 blocks (ls -s), in Nautilus is 12343489 bytes...
    This would mean the block size is: 1022.489148442677269715043074884 bytes

    file B:
    1772 blocks in ls
    nautilus reports it to have 1807751 bytes
    Block size: 1020.175507900677200902934537246 bytes

    So I can say nautilus reports the actual file size, and ls -s the actual disk usage, right?

    now, is there a way of getting the same size being reported by nautilus with ls? it would be quite handy.

    Thanks

  2. #2
    Join Date
    Jan 2008
    Location
    /dev/null
    Beans
    2,793
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: using ls to display size of files

    ls -l or if you want the human readable: ls -lh

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •