more importantly, doing
mkdir foo
ls -la foo
will show all the files in the newly created directory
That should be 2 namely . and ..
so 3,4, or 5 indicates you have that many directory entries.
lf "ls foo" shows nothing then there are 5 files starting with a dot.
so 3 more than just . and ..
steve
Rich Shepard wrote:
On Sun, 6 Feb 2022, Reid wrote:
That's the number of hard links. See section 10.1.2 of `info ls`.
Ah, yes. That's familiar from a very long time ago that I had since
forgotten.
Thanks,
Rich