

ĭrwxr-xr-x 522 macuser staff 17K Jan 22 10:20 1 macuser staff 6.0K Dec 9 13:43 1 macuser staff 30K Dec 8 12:41 1 macuser staff 45K Dec 8 12:41 1 macuser staff 88K Dec 9 12:31 tickets.JPG Total 11 macuser staff 374B Jan 14 15:32. The -a flag is optional, allowing hidden files to be displayed as well.

Using the -lah flags in addition to -R will show permissions, ownership, modification dates, and it makes reading file information much easier.

The output is decent, but it could be arranged better. Sample output would look something like this:įlaming-star-nebula.jpg ngc6188Kfir2000.jpg These commands will work in just about all forms of unix, from Mac OS X to Linux or whatever else you may encounter. This expands out subdirectories and lists the files contained within them. To list all files recursively from the command line, you can attach the -R flag to the traditional ls command. List All Files & Subdirectory Contents from the Command Line The above approach is going to be the easiest method for most users, and the next two methods are focused on the command line and are aimed at those comfortable in the Terminal. Keep in mind that if you want to view hidden files through this method, you must enable hidden files to be shown in the Mac OS X Finder separately, which will then carry out through every folder until it is disabled again. Option-clicking that arrow again will cause all subdirectories to close up, otherwise that becomes the new default view when clicking the arrow. The result is that each and every subfolder contained within the directory you option-clicked the arrow on will reveal its contents as well: Now you need to hold the Option key and click on the little arrow alongside the name of the directory to expand that directory and all subdirectories at the same time. To quickly see what’s in all the subdirectories of a folder within the Finder, open the parent folder and change to list view. How to Expand All Subdirectories & List Folder Contents in the Mac OS Finder
