- 论坛徽章:
- 0
|
可以用dd合并
- 21:16:16 >ls -lh
- total 188K
- -rw-r--r-- 1 moerae moerae 187K Jul 21 21:12 file
- 21:16:54 >md5sum file
- 314553728f2fd8c69737ad31768662e0 file
- 21:16:59 >dd if=file of=file1 bs=512 count=200
- 200+0 records in
- 200+0 records out
- 102400 bytes (102 kB) copied, 0.00120387 s, 85.1 MB/s
- 21:17:20 >dd if=file of=file2 bs=512 skip=200
- 173+1 records in
- 173+1 records out
- 88661 bytes (89 kB) copied, 0.00105776 s, 83.8 MB/s
- 21:17:35 >ls -lh
- total 376K
- -rw-r--r-- 1 moerae moerae 187K Jul 21 21:12 file
- -rw-r--r-- 1 moerae moerae 100K Jul 21 21:17 file1
- -rw-r--r-- 1 moerae moerae 87K Jul 21 21:17 file2
- 21:17:38 >cp file1 merge
- 21:17:47 >dd if=file2 of=merge bs=512 seek=200
- 173+1 records in
- 173+1 records out
- 88661 bytes (89 kB) copied, 0.00122678 s, 72.3 MB/s
- 21:18:16 >ls -lh
- total 564K
- -rw-r--r-- 1 moerae moerae 187K Jul 21 21:12 file
- -rw-r--r-- 1 moerae moerae 100K Jul 21 21:17 file1
- -rw-r--r-- 1 moerae moerae 87K Jul 21 21:17 file2
- -rw-r--r-- 1 moerae moerae 187K Jul 21 21:18 merge
- 21:18:18 >md5sum file
- 314553728f2fd8c69737ad31768662e0 file
- 21:18:24 >md5sum merge
- 314553728f2fd8c69737ad31768662e0 merge
- 21:18:27 >
复制代码 |
|