Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <llklt9Fn561U1@mid.individual.net>
Deutsch   English   Français   Italiano  
<llklt9Fn561U1@mid.individual.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: G <g@nowhere.invalid>
Newsgroups: comp.os.linux.misc
Subject: Re: Folder size and number of files
Date: 26 Sep 2024 08:56:09 GMT
Organization: <Not Here, Not Me>
Lines: 22
Sender: Gip <gip@G15.fritz.box>
Message-ID: <llklt9Fn561U1@mid.individual.net>
References: <vd0gpr$3k64u$1@dont-email.me> <vd1vjh$3r2r4$7@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net yAAu395y41S1FWoOXFxJWAhXQMPisLpYvT+lWfJ9G6Hb1zyZ9U
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:kO5BxzaveXZqQkxiytHuNRBypYI= sha256:K5emR2/fPPujpp9C5a5XNmmJFjHEBZ0J+5DTqUMc8h4=
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.10.9-100.fc39.x86_64 (x86_64))
Bytes: 1418

Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Wed, 25 Sep 2024 08:14:51 -0000 (UTC), db wrote:
> 
>> Is there a command that gives me the size of a given folder ...
> 
>     du -s «folder»

Use "du -sh" it's more readable.

> 
>> ... and the number of files in it?
> 
> I currently use
> 
>     ls «folder» | wc -l
> 
> ... not sure if there’s a more efficient way ...

Yes, install "ncdu" it does both size and number of files (with option
"--show-itemcount" or "c" when inside), and you can navigate the folder tree.

G