split files like zip for linux in cmd shell
Page 1 of 1
split files like zip for linux in cmd shell
Have you ever want to split a large file into several small files? I’ve face this problem few days ago. I need to split a large file (3GB log file) into several smaller file where i can read it using normal text editor.
To split large file into several smaller files, you can use split command in linux. Just follow the steps below and you will be able to split large file into smaller files.
* in your shell key in
$ split –bytes=1m /path/to/large/file
/path/to/output/file/prefix
* Done. You just split your large file into several smaller files
* You can change the output file size by changing the –bytes=1m to your preference. You can use b, k, or m. b represent bytes, k represent kilobytes, m represent megabytes.
To restore the original file, you can use cat command.
To join all the smaller file to restore the original file type:-
$ cat prefix* > NEWFILENAME
Easy really :d original came from http://www.techiecorner.com/107/how-to-split-large-file-into-several-smaller-files-linux/
To split large file into several smaller files, you can use split command in linux. Just follow the steps below and you will be able to split large file into smaller files.
* in your shell key in
$ split –bytes=1m /path/to/large/file
/path/to/output/file/prefix
* Done. You just split your large file into several smaller files
* You can change the output file size by changing the –bytes=1m to your preference. You can use b, k, or m. b represent bytes, k represent kilobytes, m represent megabytes.
To restore the original file, you can use cat command.
To join all the smaller file to restore the original file type:-
$ cat prefix* > NEWFILENAME
Easy really :d original came from http://www.techiecorner.com/107/how-to-split-large-file-into-several-smaller-files-linux/
Similar topics
» use linux command line to split files into 7z files
» Hacking & Cracking Forgot Passwords On Zip Files Rar Files & 7z Files Linux Brutforce
» Using Linux Play Synth Bash Shell Scripting
» Top shell Commands To Make Working With Linux Easier
» Patch Bash NOW: 'Shell Shock' bug blasts OS X, Linux systems wide open
» Hacking & Cracking Forgot Passwords On Zip Files Rar Files & 7z Files Linux Brutforce
» Using Linux Play Synth Bash Shell Scripting
» Top shell Commands To Make Working With Linux Easier
» Patch Bash NOW: 'Shell Shock' bug blasts OS X, Linux systems wide open
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum