For example We want to split a file 4Mb in size.Just call it myfile.exe for the name.And we want split it in to 1000KB each which meant that the file will split into four.Here is the command for split the file:
[admin@zone]$ split -b 1000k myfile.exe
Then type this command :
[admin@ zone]$ ls -lh
You can find the files named with "xaa" "xab" "xac" "xad" which the size are 1000KB
And how to combine back the file?We can type this command below to combine the file:
[admin@zone]$ cat xa* > myfileback.exe
The files will combine back and the name return to myfileback.exe again (4MB).
[admin@zone]$ split -b 1000k myfile.exe
Then type this command :
[admin@ zone]$ ls -lh
You can find the files named with "xaa" "xab" "xac" "xad" which the size are 1000KB
And how to combine back the file?We can type this command below to combine the file:
[admin@zone]$ cat xa* > myfileback.exe
The files will combine back and the name return to myfileback.exe again (4MB).
Tidak ada komentar:
Posting Komentar