Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #200617
| From | Ben Caradoc-Davies <ben@transient.nz> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: question about ls |
| Date | 2018-09-26 00:40 +0200 |
| Message-ID | <wC49P-7Gg-7@gated-at.bofh.it> (permalink) |
| References | <wC2B3-6GE-7@gated-at.bofh.it> <wC409-7Di-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 26/09/2018 10:27, Long Wind wrote:
> can ls show number of items in a folder?Thanks!
I use:
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
find.
Kind regards.
--
Ben Caradoc-Davies <ben@transient.nz>
Director
Transient Software Limited <https://transient.nz/>
New Zealand
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Scribus has stopped importing PDF files Gary Dale <garyndp@gmail.com> - 2018-09-25 23:00 +0200
question about ls Long Wind <longwind2@yahoo.com> - 2018-09-26 00:30 +0200
Re: question about ls Ben Caradoc-Davies <ben@transient.nz> - 2018-09-26 00:40 +0200
Re: question about ls Long Wind <longwind2@yahoo.com> - 2018-09-26 01:00 +0200
Re: question about ls Long Wind <longwind2@yahoo.com> - 2018-09-26 01:00 +0200
Re: question about ls Ben Caradoc-Davies <ben@transient.nz> - 2018-09-26 01:20 +0200
Re: question about ls Kent West <westk@acu.edu> - 2018-09-27 15:00 +0200
Re: question about ls Greg Wooledge <wooledg@eeg.ccf.org> - 2018-09-27 15:20 +0200
Re: question about ls Richard Hector <richard@walnut.gen.nz> - 2018-09-28 08:00 +0200
Re: question about ls Ionel Mugurel Ciobîcă <I.M.Ciobica@gmail.com> - 2018-09-28 09:10 +0200
Re: question about ls Greg Wooledge <wooledg@eeg.ccf.org> - 2018-09-28 14:30 +0200
Re: question about ls Richard Hector <richard@walnut.gen.nz> - 2018-09-28 16:40 +0200
Re: question about ls Virgo Pärna <virgo.parna@mail.ee> - 2018-10-03 14:10 +0200
Re: question about ls Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-03 15:00 +0200
Re: question about ls David Wright <deblis@lionunicorn.co.uk> - 2018-09-27 16:00 +0200
Re: question about ls Greg Wooledge <wooledg@eeg.ccf.org> - 2018-09-27 16:10 +0200
Re: question about ls David Wright <deblis@lionunicorn.co.uk> - 2018-09-27 16:30 +0200
Re: question about ls Michael Stone <mstone@debian.org> - 2018-09-27 17:10 +0200
Re: question about ls <tomas@tuxteam.de> - 2018-09-28 09:00 +0200
Re: question about ls Michael Stone <mstone@debian.org> - 2018-09-28 12:50 +0200
Re: question about ls <tomas@tuxteam.de> - 2018-09-28 09:00 +0200
Re: question about ls Greg Wooledge <wooledg@eeg.ccf.org> - 2018-09-27 14:40 +0200
Re: question about ls Gene Heskett <gheskett@shentel.net> - 2018-09-27 17:00 +0200
Re: question about ls Greg Wooledge <wooledg@eeg.ccf.org> - 2018-09-27 17:10 +0200
Re: Scribus has stopped importing PDF files rv riveravaldez <riveravaldezmail@gmail.com> - 2018-09-28 01:40 +0200
csiph-web