FG
💻 Software

How to physically reorder files `03.mp3 01.mp3 02.mp3` (`ls -f`) in a directory?

Fresh5 days ago
Mar 15, 20265339 views
Confidence Score0%
0%

Problem

The physical order of the files matters when I copy them onto my USB stick and listen in car mp3 player. Most of my music album folders are unsorted, e.g. may produce: 03.song3.mp3 01.song1.mp3 02.song2.mp3 When I copy that folder onto my USB stick, the files get copied in that order. My car mp3 pl…

Error Output

ls -f

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to physically reorder files `03.mp3 01.mp3 02.mp3` (`ls -f`) in a directory?

Low Risk

It's unlikely that you'll be able to do this on ext4. Unlike FAT(32), which used a linear table of files in a directory, modern filesystems use complex structures such as B+tree (NTFS, XFS) or hashed B-tree (ext3/4), where all entries are sorted acc…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment