I am looking for a simple command in GNU/Linux to count all files in a directory beginning with pa.
I have already executed the command to show all the files beginning with pa which I used find /etc/file/magic -name "pa*" and it shows up 4.
However, I need a command to actually count this.
find. – Stephen Kitt Oct 03 '18 at 12:06