How do I create a tar file in alphabetical order?
Fresh3 days ago
Mar 15, 202610191 viewsConfidence Score0%
0%
Problem
I want to create a tar file where all of the directories and files are processed in alphabetical order. This is for the entire directory hierarchy that's being tarred up, so it would start by processing the first directory alphabetically, and then sub-directories in there alphabetically, etc. I loo…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I create a tar file in alphabetical order?
Low Risk
Slartibartfast is on the right track, but tar's default behaviour is to descend into directories, so you may get more than one copy of the same file included in the generated tar file. You can check by doing The workaround is to include the --no-rec…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix