In Reply to: Help, what a mess! posted by LtMandella on September 29, 2020 at 16:03:50:
My wife had a similar issue with multiple USB drives for her video projects when she wanted to find out what was on all the drives and consolidate all the files to a much larger NAS drive.
It's easy in Linux or any UNIX like shell:
du -ah /dir > drive_name.txt
That gives you a file with a list of all the files in that directory tree in alphabetical order that you can then print in notepad or whatever.
If you['re using a Mac, you can do this command by clicking on the Terminal program.
For Windows, you would need to download and install cygwin which is free. From there, open the cygwin Terminal from the start under programs.
du -h gives you your drives on the system.
cd D: moves to the D drive
ls gives you the directory list
For a dir with spaces, use cd 'Recorded TV' with single quotes.
Once you get to your music dir, then du -ah. To save that to a file, du -ah > file.txt
-Rod
This post is made possible by the generous support of people like you and our sponsors:
Follow Ups
- RE: Help, what a mess! - Rod M 18:26:14 10/03/20 (1)
- RE: Help, what a mess! - LtMandella 20:38:03 10/03/20 (0)