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 *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>