Split command is used to split a larger file into smaller ones
syntax: split -bytes = 1m path to large files path/prefix
$ split –bytes=1m /path/to/large/file /path/to/output/file/prefix
* 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
Eg:
split --bytes=1m thetruth_wrdp2.sql thetruth_wrdp2.sql_
No comments:
Post a Comment