From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D524B15ACFB for ; Thu, 20 Apr 2023 04:23:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0D526E08DB; Thu, 20 Apr 2023 04:23:30 +0000 (UTC) Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 02C6FE0848 for ; Thu, 20 Apr 2023 04:23:28 +0000 (UTC) Received: by mail-yb1-xb32.google.com with SMTP id t15so1466745ybb.1 for ; Wed, 19 Apr 2023 21:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681964608; x=1684556608; h=in-reply-to:mime-version:user-agent:date:message-id:autocrypt :openpgp:from:references:to:subject:from:to:cc:subject:date :message-id:reply-to; bh=fHk6COURdmIoBKGsgRlK7hUEvjIo/iTly7nP46h6ydI=; b=FNovFkS5TR7tZEv+YszlA8h01LZzUckvieKgf0oNITNs+ktMQgxG55zXbjWftThvGr Kf3VG+L0XGQnTpBBgBiea7Wu6WaF7zv7H8y56Syh5M0n7TLyXgnUm/3d6Zf2vJ8qh9Ic A2mORRko0a4eZkf3m8WjmPIgHlGiXxI6zoR0bjVVKQGDF7rWwvMHdKkXvHnpoNHUIREC 0tv53YZSsNtQlNq2dlZc5MGnzoW5YG2hT1wUyNQ9qUR53ETu30YFtIylFD4lay78E5gg lmnY4w1yuIhd+hO4CbL3unF0xts5U2jdkVyGmSAsObHUAChsjXn1wnfxVsSyJPHrK8qX i/5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681964608; x=1684556608; h=in-reply-to:mime-version:user-agent:date:message-id:autocrypt :openpgp:from:references:to:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fHk6COURdmIoBKGsgRlK7hUEvjIo/iTly7nP46h6ydI=; b=DFpfvGrozuZ8LY4Q6XVuDXxjU2qy+NZpkHJ/WBQKK5P5cRHA3YLnzLd6qA4OazKwKv HV0zXy5ZZa54G78VM5BWTGUmcKJbTsyTX8dvaHs5l4NLT4em5f6OCYAOavk4/Fy8I9YU lJ5eNZu9NzfE+I7LAlS+igXJo6Os5mLy6dtj1Bv3Iw0m/dmMcG0ZNM6rYJUvm85HJs2+ u7rvh6EKTQh6nWFvCrca20/pM7f5zzw0Igx9TWofbF7TNXWoiDhyCAgsOmU0SU6NRLYq v1yYpfqRCZhYtM6yX6KmL5um4Z80wCNpwCvpDwEaEltk2v0ryiM55nhRQ3nKQq5/gI43 VdiQ== X-Gm-Message-State: AAQBX9fcdInrsk0D/ZhMrVuf0cSWgIF8/F3YRALkcR5XNbofF19QDDo5 MUQ6l6GRnvYxHbgfXcdc09zD/YdB/I0v6w== X-Google-Smtp-Source: AKy350YLbnSCBEpyr8bRj3qhfIeKBKShYTQqihT9APjdPIJDufAQCi0LXeZAF8kR46eDKAw0bWvRlA== X-Received: by 2002:a25:ac4e:0:b0:b8f:6bcc:3d60 with SMTP id r14-20020a25ac4e000000b00b8f6bcc3d60mr182246ybd.64.1681964608065; Wed, 19 Apr 2023 21:23:28 -0700 (PDT) Received: from [10.8.8.5] ([107.179.20.172]) by smtp.gmail.com with ESMTPSA id m4-20020a258004000000b00b8c31377e1bsm97812ybk.54.2023.04.19.21.23.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Apr 2023 21:23:27 -0700 (PDT) Subject: Re: [gentoo-user] Re: Finally got a SSD drive to put my OS on To: gentoo-user@lists.gentoo.org References: <3a8a143d-38f0-b7ea-4aa1-10c0b3a2a1e0@gmail.com> <81fde7b8-cc55-fcae-79ea-4dd2a78eb8a0@gmail.com> <2703063.mvXUDI8C0e@wstn> <7ef36857-192e-6d2c-dc44-a2c4ba772205@gmail.com> <35474652-f973-75b2-b8e7-4d22915672ac@gmail.com> <9781e250-591d-d468-11f2-7e5c94ac7db3@gmail.com> From: Dale Openpgp: preference=signencrypt Autocrypt: addr=rdalek1967@gmail.com; prefer-encrypt=mutual; keydata= mQINBGFSciYBEADcEGMyJBSuavKO/XKUVvgkxck7Nl8Iuu8N2lcnRji/rSKg5c1Acix1ll9i oW8JBCHwvn0+Xy60BvEsqcup3YSHw5STl/bR1ePEehtnYrg8FdjdS91+B805RfnKMm69rFVI wLSBHQrSG1yxHd8CloWoEdhmVtP24buajbh114bgXd9ahtpZrCVMrWdWYUg2mEXguGV5uNAh Rf8SWxDNc79w24JxsV34a8niMUYMjzWr0rafIbzk732X38vGjVMLo/2mMpkbp9mPp++LHoY+ 0Pet8zxxdXPJSCd475kza1AD+hhSyBZXB9yknYWgyY3cZe1rGmooJSi2KX4QxO7npwLThcO1 be6KKRkd35+Fi/a1BzVOHsZMiK/gcwxEFoMd27gir4ehaeHJfFXl+65w4hj0EsOZSxrJrm2C R50g5By2czSKP1bADEygFNpIJj51AR+wM88NImG2RPtlT2maYBzazvF05g65cdHXGp1C7W5P wwwKU2DgABB2t7N7z5A69LnryBRw4zUYDRRYLTYlBlYgg+xILm2c0OrBdxJgLJa7JE50Eo25 d3PFwt9J0gYvqy6sPFLl9So0sDg9zm0hKQtXOP5kgropUFGrNoJI+mjwF4rYLRBVzZwNAvlO OhEvHubBo3mEllv4x+FeptwXZxlk7gUsdqI8AxnFB8K9wi6FVQARAQABtBtEYWxlIDxyZGFs ZWsxOTY3QGdtYWlsLmNvbT6JAk4EEwEIADgCGyMFCwkIB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9E4owsszefn51MwfjXxB20Fc5k3GU1AVpTCMs3ayYCzo0b2pvEvdjtDcA CYLEFPWgaFX9iQAM/CDfKvTtvgGWpqtCL2raq/mQoJEU Message-ID: <32e6eec8-8631-733d-d0dc-69f171bbe77e@gmail.com> Date: Wed, 19 Apr 2023 23:23:25 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.15 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------426EA85C2D6D6247C94F272E" X-Archives-Salt: d1442326-6caa-44dc-bbef-edbd4412f466 X-Archives-Hash: 796d428ed46e57327279f409a29d541f This is a multi-part message in MIME format. --------------426EA85C2D6D6247C94F272E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 :-)  :-)  --------------426EA85C2D6D6247C94F272E Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
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

:-)  :-) 
--------------426EA85C2D6D6247C94F272E--