[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 780 files in /usr/share/zoneinfo/



On Mon, 23 Nov 2020 07:51:09 -0500
Greg Wooledge <wooledg@eeg.ccf.org> wrote:

> (And yes, I know find | wc -l isn't an accurate way to count files if
> their names are unrestricted.  Here I'm assuming there aren't a huge
> number of filenames in /usr/share/zoneinfo/ with newlines.)

You are also assuming that there are no hard links. In this case, the
assumption is correct.

root@jhegaala:~# find /usr/share/zoneinfo -type f | xargs ls -i | cut -f1 -d' ' | sort -n | wc -l
780
root@jhegaala:~# 


-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/


Reply to: