alirajabi commited on
Commit
14c6788
·
verified ·
1 Parent(s): 4a2f267

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +69 -4
README.md CHANGED
@@ -1,4 +1,69 @@
1
- Merging and Extracting Split tar.xz Files
2
- Here's a step-by-step guide to merge your split dataset files and extract the contents:
3
- Step 1: Download All Parts
4
- First, make sure you have all the split parts downloaded to the same directory:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # How to Merge and Extract Split tar.xz Files
2
+
3
+ Follow these steps to combine and extract your split alibaba_dataset files.
4
+
5
+ ## Step 1: Download All Parts
6
+ First, ensure all split parts are downloaded to the same directory:
7
+ ```
8
+ alibaba_dataset_part_aa
9
+ alibaba_dataset_part_ab
10
+ alibaba_dataset_part_ac
11
+ alibaba_dataset_part_ad
12
+ alibaba_dataset_part_ae
13
+ alibaba_dataset_part_af
14
+ alibaba_dataset_part_ag
15
+ ```
16
+
17
+ ## Step 2: Merge the Split Files
18
+ Use the `cat` command to concatenate all parts in the correct order:
19
+
20
+ ```bash
21
+ cat alibaba_dataset_part_* > alibaba_dataset.tar.xz
22
+ ```
23
+
24
+ This command combines all parts into a single file named `alibaba_dataset.tar.xz`.
25
+
26
+ ## Step 3: Verify the Merged File
27
+ Check that the merged file was created successfully:
28
+
29
+ ```bash
30
+ ls -lh alibaba_dataset.tar.xz
31
+ ```
32
+
33
+ The file size should be approximately 500GB (the sum of all parts).
34
+
35
+ ## Step 4: Extract the tar.xz Archive
36
+ Use the `tar` command with appropriate flags:
37
+
38
+ ```bash
39
+ tar -xf alibaba_dataset.tar.xz
40
+ ```
41
+
42
+ For progress visibility, add the verbose flag:
43
+
44
+ ```bash
45
+ tar -xvf alibaba_dataset.tar.xz
46
+ ```
47
+
48
+ ## Step 5: Verify Extraction
49
+ Once extraction is complete, check the extracted contents:
50
+
51
+ ```bash
52
+ ls -la
53
+ ```
54
+
55
+ ## Memory-Efficient Options
56
+
57
+ If disk space is limited, extract directly without saving the merged file:
58
+
59
+ ```bash
60
+ cat alibaba_dataset_part_* | tar -xJ
61
+ ```
62
+
63
+ For large archives that cause memory issues:
64
+
65
+ ```bash
66
+ tar --use-compress-program="xz -d" -xf alibaba_dataset.tar.xz
67
+ ```
68
+
69
+ This approach may handle very large archives more efficiently.