How to broke/Split any file in redhat Linux Server
hello guys today we will learn how can we split any file in our linux machine its a very simple method .before we know why we split any file some time we need to send any important data through E-mail but our data is very large. so we cant’t send through Email .so we can broke many parts in our data file and send. receiver will be collect all broke data file and make original data file. that plus point is we can split any extensions file like MP3, mp4, jpg .png.text .text PDF everything .so let we will start just follow me
Step 1 before we will create any file in 200MB size and then we will split in nine (9) parts
[root@localhost ~]# dd if=/dev/sda of=demo.txt bs=2M count=100 100+0 records in 100+0 records out 209715200 bytes (210 MB) copied, 2.96287 seconds, 70.8 MB/s
now we have Demp.txt file its size is 210 mb .
Step2 now we will split in nine (9) parts through this commands
( Note-Actually split commands is work on bytes so here we gave our split size 25000000kb )
[root@localhost expirment]# split -b 25000000 demo.txt[root@localhost expirment]# ls demo.txt xaa xab xac xad xae xaf xag xah xai
Step3 now we will delete our demo.txt file
[root@localhost expirment]# rm -rf demo.txt [root@localhost expirment]# ls xaa xab xac xad xae xaf xag xah xai
here we dont’t have demo .txt file
Step4 now we can create original file through all broken parts
[root@localhost expirment]# cat x*> demo.txtwhen we will look our directory we found our demo txt file
[root@localhost expirment]# ls
demo.txt xaa xab xac xad xae xaf xag xah xai
its a very useful and simple method if you have any problem in this method comments here i will solve your problem
Thank you
By Vishnu sharma
