Cool, thanks! So you use ls to list it in separate it lines then pipe it to wc to count those lines and print the total number.
That seems like such a hassle, though, there is no flag or something like that so that du or ls can simply show the total number of files in its output?
|