split, 你需要将大的文件分解称若干小部分?split是你的命令,下面是将250MB文件分解为2M的块儿,所有开始于LF_前缀。
# ls -lh largefile -rw-r--r-- 1 root root 251M Feb 19 10:27 largefile # split -b 2m largefile LF_ # ls -lh LF_* | head -n 5 -rw-r--r-- 1 root root 2.0M Feb 19 10:29 LF_aa -rw-r--r-- 1 root root 2.0M Feb 19 10:29 LF_ab -rw-r--r-- 1 root root 2.0M Feb 19 10:29 LF_ac -rw-r--r-- 1 root root 2.0M Feb 19 10:29 LF_ad -rw-r--r-- 1 root root 2.0M Feb 19 10:29 LF_ae # ls -lh LF_* | wc -l 126 |