Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 550
  • Last Modified:

How do I use mac osx terminal to list all files and folders on my computer and output them to a txt file?

I have an external hard drive with a time machine backup. This hard drive is being used in a litigation case and we are trying to get a list of all directories and files so that we can perform discovery on it.  Does anyone have any experience with the terminal script that would be used to list all of the contents and basic metadata then output it to a txt file? Or if there is another/better way to do this I am open for suggestions.  

1 Solution
There are a couple of suggestions here:


Haven't tried them personally.
if that hard disk is connected to the computer. all you have to do is to log in as root and it will show the contents of the drive.
if you let me know what version of OS X you are on, i can tell you exactly how to enable root user.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now