Update README.md
Browse files
README.md
CHANGED
@@ -1,4 +1,69 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|