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. The result is that each and every subfolder contained within the directory you option-clicked the arrow on will reveal its contents as well:. Option-clicking that arrow again will cause all subdirectories to close up, otherwise that becomes the new default view when clicking the arrow.
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. 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.
How to List All Files and Subdirectory Contents in a Folder on Mac
To list all files recursively from the command line, you can attach the -R flag to the traditional ls command. This expands out subdirectories and lists the files contained within them. These commands will work in just about all forms of unix, from Mac OS X to Linux or whatever else you may encounter. Using the -lah flags in addition to -R will show permissions, ownership, modification dates, and it makes reading file information much easier. The -a flag is optional, allowing hidden files to be displayed as well.
You can get the path to proceed the file name though by using a different command entirely. Finally, if you want a list of all files with their complete paths specified, you can turn to the find command. Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Home Questions Tags Users Unanswered. Asked 6 years, 6 months ago. Active 25 days ago.
How To… Print The Contents Of A Folder On The Mac
Viewed 61k times. I am in a folder, and I want a list of all the sub-directories and their total sizes. How can I do this? Why the down votes?
Check The Most Likely Places
Matteo I'd say that this question does not show research effort. In fact, the Related list shows the question which is essentially a duplicate, which means the OP should have seen it when they were searching for an answer to their question before they posted it.
- itunes music folder location on mac.
- You might also like…;
- Mac OS X Hidden Files & Directories!
- search on mac mail not working;
- lightroom 3 slow on mac!
What does that say about your comment? I'm not commenting on down-voting.
- java 7 mac os x jdk.
- You have Successfully Subscribed!.
- How to Find and Delete Large Files on Your Mac?
We have hundreds of articles on various command line topics you can review here:. Including drilling down subfolders, getting more info, redirecting output to text files, etc, the archives go back many years. If it is not plain text it will attempt rich text pasting with the documents instead.
Mac OS X Hidden Files & Directories
Name required. Mail will not be published required. All Rights Reserved. Reproduction without explicit permission is prohibited. Diesel says:. May 23, at am.
How to Expand All Subdirectories & List Folder Contents in the Mac OS Finder
Paul says:. February 9, at am. Janet Austin says:.
September 23, at am. Knuyec says:.