How do I change the Creation/Mod Date of all folders on a USB drive using Touch command?
- by Chad--24216
I've got a USB drive with mp3 music on it that I play in my car. My car has a USB drive port. Problem is that the car sorts the music by Creation/Modification Date (and not alphabetically). This makes it a pain to find what artist I'm looking for.
To solve this problem, I need a way to "update" the Creation/Modification Date for all folders on the USB drive every time I add a new folder of music to the USB drive. Anyone know how I can do this?
The Touch command works great, but the format touch <filename> would take forever to do on each folder on the drive. Anyway to select all folders on the drive and then touch <all folders>?
On my USB drive I have a folder for each album and the songs within each respective folder, like so: Album-1-folder Album-2-folder
I need to apply the Touch command to each of the "album" folders on the drive.
I stumbled upon a simple solution to solve this issue:touch /media/USB_Drive/*