Linux command line monitor number of files in subfolders

The following one-liner command will monitor the number of files in all subfolders in a folder and display the count on the same line. This is especially if you want to keep an eye on the progress of multiple file downloads e.g. with wget.

while [ 1 ];  do  echo -e `find . -type f|wc -l` “\r\c” ; sleep 1;  done

Leave a Reply

Your email address will not be published. Required fields are marked *