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

Posted on 2010-01-06
Last Modified: 2012-05-08
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.  

Question by:mikasa97
    LVL 53

    Accepted Solution

    There are a couple of suggestions here:

    Haven't tried them personally.
    LVL 1

    Expert Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Hi Folks, This article is intended to throw some light or basically give an idea towards taking the first step in the world of Systems Administration. This would in the real context of the word "Systems Administration" which would mean right from…
    This article describes in detail how to set up the iPad in the Enterprise using iPCU aka iPhone Configuration Utility.  This could also be used for the iPhone although I have not detailed out any differences. Preparation as an iPad Administrator:…
    Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor. Open up an Image you'd like to resize in Adobe Photoshop: Adjust the image size according to your preferences. Image > Adjustments > …
    Users will learn how to set proper sequence settings, scale images, paste attributes, add transitions, fades, and music. Open up Final Cut Pro 7 and Create a new Project: Set the Sequence Settings. a) Click File > Easy Setup > Format > Apple ProRe…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now