ls -s command, what type of file size












3















When you type ls -s, what size unit does it use to display the file sizes - bits, bytes, megabytes?










share|improve this question





























    3















    When you type ls -s, what size unit does it use to display the file sizes - bits, bytes, megabytes?










    share|improve this question



























      3












      3








      3


      2






      When you type ls -s, what size unit does it use to display the file sizes - bits, bytes, megabytes?










      share|improve this question
















      When you type ls -s, what size unit does it use to display the file sizes - bits, bytes, megabytes?







      files ls






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 16 at 0:41









      wjandrea

      8,62442260




      8,62442260










      asked May 17 '18 at 21:09









      kristhemankristheman

      2013




      2013






















          2 Answers
          2






          active

          oldest

          votes


















          5














          It shows the size of the file in blocks. I guess, it is in KBs. If you use -h option along with -s, like ls -sh you could see the size in human readable format. For more info check the man page.






          share|improve this answer































            0














            The units are KiBs (1024 bytes).



            From man ls:



            -s, --size
            print the allocated size of each file, in blocks


            But how big is a block? From info coreutils ls:




            Normally the disk allocation is printed in units of 1024 bytes, but this can be overridden




            It's also worth noting that ls -s says symlinks take 0 space, while ls -l doesn't. E.g. ls -l gives the size of / as 1, /var as 4, /home/username as 14, etc.






            share|improve this answer

































              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              5














              It shows the size of the file in blocks. I guess, it is in KBs. If you use -h option along with -s, like ls -sh you could see the size in human readable format. For more info check the man page.






              share|improve this answer




























                5














                It shows the size of the file in blocks. I guess, it is in KBs. If you use -h option along with -s, like ls -sh you could see the size in human readable format. For more info check the man page.






                share|improve this answer


























                  5












                  5








                  5







                  It shows the size of the file in blocks. I guess, it is in KBs. If you use -h option along with -s, like ls -sh you could see the size in human readable format. For more info check the man page.






                  share|improve this answer













                  It shows the size of the file in blocks. I guess, it is in KBs. If you use -h option along with -s, like ls -sh you could see the size in human readable format. For more info check the man page.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 17 '18 at 21:31









                  NakiniNakini

                  189126




                  189126

























                      0














                      The units are KiBs (1024 bytes).



                      From man ls:



                      -s, --size
                      print the allocated size of each file, in blocks


                      But how big is a block? From info coreutils ls:




                      Normally the disk allocation is printed in units of 1024 bytes, but this can be overridden




                      It's also worth noting that ls -s says symlinks take 0 space, while ls -l doesn't. E.g. ls -l gives the size of / as 1, /var as 4, /home/username as 14, etc.






                      share|improve this answer






























                        0














                        The units are KiBs (1024 bytes).



                        From man ls:



                        -s, --size
                        print the allocated size of each file, in blocks


                        But how big is a block? From info coreutils ls:




                        Normally the disk allocation is printed in units of 1024 bytes, but this can be overridden




                        It's also worth noting that ls -s says symlinks take 0 space, while ls -l doesn't. E.g. ls -l gives the size of / as 1, /var as 4, /home/username as 14, etc.






                        share|improve this answer




























                          0












                          0








                          0







                          The units are KiBs (1024 bytes).



                          From man ls:



                          -s, --size
                          print the allocated size of each file, in blocks


                          But how big is a block? From info coreutils ls:




                          Normally the disk allocation is printed in units of 1024 bytes, but this can be overridden




                          It's also worth noting that ls -s says symlinks take 0 space, while ls -l doesn't. E.g. ls -l gives the size of / as 1, /var as 4, /home/username as 14, etc.






                          share|improve this answer















                          The units are KiBs (1024 bytes).



                          From man ls:



                          -s, --size
                          print the allocated size of each file, in blocks


                          But how big is a block? From info coreutils ls:




                          Normally the disk allocation is printed in units of 1024 bytes, but this can be overridden




                          It's also worth noting that ls -s says symlinks take 0 space, while ls -l doesn't. E.g. ls -l gives the size of / as 1, /var as 4, /home/username as 14, etc.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Jan 16 at 1:01

























                          answered Jan 16 at 0:47









                          wjandreawjandrea

                          8,62442260




                          8,62442260















                              Popular posts from this blog

                              How to change which sound is reproduced for terminal bell?

                              Can I use Tabulator js library in my java Spring + Thymeleaf project?

                              Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents