[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-user
Subject:    Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on
From:       Dale <rdalek1967 () gmail ! com>
Date:       2023-04-20 4:23:25
Message-ID: 32e6eec8-8631-733d-d0dc-69f171bbe77e () gmail ! com
[Download RAW message or body]

Mark Knecht wrote:
>
> > I wonder.  Is there a way to find out the smallest size file in a
> directory or sub directory, largest files, then maybe a average file
> size???  I thought about du but given the number of files I have here,
> it would be a really HUGE list of files.  Could take hours or more
> too.  This is what KDE properties shows.
>
> I'm sure there are more accurate ways but 
>
> sudo ls -R / | wc
>
> give you the number of lines returned from the ls command. It's not
> perfect as there are blank lines in the ls but it's a start.
>
> My desktop machine has about 2.2M files.
>
> Again, there are going to be folks who can tell you how to remove
> blank lines and other cruft but it's a start.
>
> Only takes a minute to run on my Ryzen 9 5950X. YMMV.
>

I did a right click on the directory in Dolphin and selected
properties.  It told me there is a little over 55,000 files.  Some 1,100
directories, not sure if directories use inodes or not.  Basically,
there is a little over 56,000 somethings on that file system.  I was
curious what the smallest file is and the largest.  No idea how to find
that really.  Even du separates by directory not individual files
regardless of directory.  At least the way I use it anyway. 

If I ever have to move things around again, I'll likely start a thread
just for figuring out the setting for inodes.  I'll likely know more
about the number of files too. 

Dale

:-)  :-) 

[Attachment #3 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Mark Knecht wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAK2H+edCDPXpZZy06Lrm55=AAmHhTm28wxMKAncryuXySp1OKA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr"><br>
        &gt; I wonder.  Is there a way to find out the smallest size
        file in a directory or sub directory, largest files, then maybe
        a average file size???  I thought about du but given the number
        of files I have here, it would be a really HUGE list of files. 
        Could take hours or more too.  This is what KDE properties
        shows.
        <div><br>
          <div class="gmail_quote">
            <div>I'm sure there are more accurate ways but </div>
            <div><br>
            </div>
            <div>sudo ls -R / | wc</div>
            <div><br>
            </div>
            <div>give you the number of lines returned from the ls
              command. It's not perfect as there are blank lines in the
              ls but it's a start.</div>
            <div><br>
            </div>
            <div>My desktop machine has about 2.2M files.</div>
            <div><br>
            </div>
            <div>Again, there are going to be folks who can tell you how
              to remove blank lines and other cruft but it's a start.</div>
            <div><br>
            </div>
            <div>Only takes a minute to run on my Ryzen 9 5950X. YMMV.</div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    I did a right click on the directory in Dolphin and selected
    properties.  It told me there is a little over 55,000 files.  Some
    1,100 directories, not sure if directories use inodes or not. 
    Basically, there is a little over 56,000 somethings on that file
    system.  I was curious what the smallest file is and the largest. 
    No idea how to find that really.  Even du separates by directory not
    individual files regardless of directory.  At least the way I use it
    anyway.  <br>
    <br>
    If I ever have to move things around again, I'll likely start a
    thread just for figuring out the setting for inodes.  I'll likely
    know more about the number of files too.  <br>
    <br>
    Dale <br>
    <br>
    :-)  :-)  <br>
  </body>
</html>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic