Re: question about ls
- Date: Wed, 26 Sep 2018 10:34:25 +1200
- From: Ben Caradoc-Davies <ben@xxxxxxxxxxxx>
- Subject: Re: question about ls
On 26/09/2018 10:27, Long Wind wrote:
can ls show number of items in a folder?Thanks!
ls -1 | wc -l
To include items whose names start with ".", add the "a" or "A" argument
to ls ("man ls" for details).
For more advanced searches (recursive or filtering on file type), I use
Ben Caradoc-Davies <ben@xxxxxxxxxxxx>
Transient Software Limited <https://transient.nz/>