Find out the total number of directories and files present in your system
To find out the total number of directories or files, use the Tree command. Tree can list the contents of the directories in a tree-like format. You may have to install tree in your system first, if it has not already been done.
On an Ubuntu or Debian based system, run the following command: