One of the commonest problems we deal with is finding misplaced files and sorting out mangled file hierarchies. This section will discuss tricks for examining a portion of the filesystem and presenting the contents.
Examining a directory, files and subdirectories in it
Getting ready
The find command and loops we discussed give us tools to examine and report details in a directory and its contents.
How to do it...
The next recipes show two ways to examine a directory. First we'll display the hierarchy as a tree, then we'll see how to generate a summary of files and folders under a directory.
...