All posts tagged: count

Get number of files or directory using tree

Leave a comment
System Administration

Tree is an useful linux command to display a tree representation a full directory structure or a part of it. On a Debian based distro like Ubuntu install: The last line of tree print a line like this: 346 directories, 174 files If you’re changing files and directories and you want a real-time update of files and directories number, you can use watch. Tree will print the tree, tail will extract the last line, then […]