How to count number of Files and Folders inside Directory

To check number of files and folders containing inside folder you can use command tree , tree command will help you to figure out under which folder which files stored. use command #man tree to check all option and feature about tree command
root@TecGeeks:~# tree -iLf 1 nagios-4.2.1
nagios-4.2.1

nagios-4.2.1/base
nagios-4.2.1/cgi
nagios-4.2.1/Changelog
nagios-4.2.1/common
nagios-4.2.1/config.guess
nagios-4.2.1/config.log
nagios-4.2.1/config.status
nagios-4.2.1/config.subnagios-4.2.1/configurenagios-4.2.1/configure.ac
nagios-4.2.1/contrib
nagios-4.2.1/daemon-init
nagios-4.2.1/daemon-init.in
nagios-4.2.1/docs
nagios-4.2.1/doxy.conf
nagios-4.2.1/functions
nagios-4.2.1/html
nagios-4.2.1/include
nagios-4.2.1/indent-all.sh
nagios-4.2.1/indent.sh
nagios-4.2.1/INSTALLING
nagios-4.2.1/install-sh
nagios-4.2.1/LEGAL
nagios-4.2.1/lib
nagios-4.2.1/LICENSE
nagios-4.2.1/Makefile
nagios-4.2.1/Makefile.in
nagios-4.2.1/make-tarball
nagios-4.2.1/mkpackage
nagios-4.2.1/module
nagios-4.2.1/nagios.spec
nagios-4.2.1/nagios.sysconfig
nagios-4.2.1/pkginfo
nagios-4.2.1/pkginfo.in
nagios-4.2.1/README
nagios-4.2.1/README.asciidoc
nagios-4.2.1/sample-config
nagios-4.2.1/subst
nagios-4.2.1/subst.in
nagios-4.2.1/t
nagios-4.2.1/tap
nagios-4.2.1/test
nagios-4.2.1/THANKS
nagios-4.2.1/t-tap
nagios-4.2.1/update-version
nagios-4.2.1/UPGRADING
nagios-4.2.1/worker
nagios-4.2.1/xdata

16 directories, 32 files

root@TecGeeks:~#
How to count number of Files and Folders inside Directory How to count number of Files and Folders inside Directory Reviewed by Unknown on April 27, 2017 Rating: 5

No comments:

Get Your Business Online Now


Powered by Blogger.