Results 1 to 6 of 6

Thread: Which command rounds better file sizes?

Threaded View

  1. #1
    Join Date
    May 2009
    Beans
    265

    Which command rounds better file sizes?

    Which command rounds better the file size?

    Code:
    me@mypc:~$ ls -l /tmp/Screenshot-Zimbra.jpg 
    -rw-r--r-- 1 me me 173417 2011-01-13 13:49 /tmp/Screenshot-Zimbra.jpg
    
    me@mypc:~$ ls -lh /tmp/Screenshot-Zimbra.jpg 
    -rw-r--r-- 1 me me 170K 2011-01-13 13:49 /tmp/Screenshot-Zimbra.jpg
    
    me@mypc:~$ ls -lk /tmp/Screenshot-Zimbra.jpg 
    -rw-r--r-- 1 me me 170 2011-01-13 13:49 /tmp/Screenshot-Zimbra.jpg
    
    
    me@mypc:~$ du -b /tmp/Screenshot-Zimbra.jpg 
    173417    /tmp/Screenshot-Zimbra.jpg
    
    me@mypc:~$ du -h /tmp/Screenshot-Zimbra.jpg 
    172K    /tmp/Screenshot-Zimbra.jpg
    
    me@mypc:~$ du -k /tmp/Screenshot-Zimbra.jpg 
    172    /tmp/Screenshot-Zimbra.jpg
    What is the reason for the difference?
    Does ls show the apparent size?
    Last edited by HotForLinux; January 13th, 2011 at 02:43 PM.

Tags for this Thread

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
  •