[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: Mark Knecht <markknecht () gmail ! com>
Date: 2023-04-20 1:09:15
Message-ID: CAK2H+edCDPXpZZy06Lrm55=AAmHhTm28wxMKAncryuXySp1OKA () mail ! gmail ! com
[Download RAW message or body]
> 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.
[Attachment #3 (text/html)]
<div dir="ltr"><br>> 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>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic