helps you achieve understanding, develop good practices, and operate your team and organization for maximum DevOps awesomeness
Thursday, December 7, 2017
Split linux file
0. Create a test file
[root@jmlab ~]# head -c 19MB /dev/urandom > jmtest1.txt
[root@jmlab ~]# pwd
/root
1. check the size of current file
[root@jmlab ~]# ls jmtest1.txt
jmtest1.txt
[root@jmlab ~]# du -sh jmtest1.txt
19M jmtest1.txt
2. check the file checksum
[root@jmlab ~]# md5sum jmtest1.txt
b06b3a95f8306b9a52390ede0e701e44 jmtest1.txt
3. split file into 5mb site
[root@jmlab ~]# split -b 5M jmtest1.txt jmtest1_
4. check the files and upload
[root@jmlab ~]# ls -lrt jmtest1_*
-rw-r--r-- 1 root root 5242880 Apr 14 06:48 jmtest1_aa
-rw-r--r-- 1 root root 5242880 Apr 14 06:48 jmtest1_ab
-rw-r--r-- 1 root root 5242880 Apr 14 06:48 jmtest1_ac
-rw-r--r-- 1 root root 3271360 Apr 14 06:48 jmtest1_ad
5. Marge file (Give this command to receiving person)
[root@jmlab ~]# cat jmtest1_* > jm1.txt
6. validate checksum
[root@jmlab ~]# md5sum jm1.txt
b06b3a95f8306b9a52390ede0e701e44 jm1.txt
[root@jmlab ~]#
Subscribe to:
Posts (Atom)
apt-key warning when sudo apt update run
Issue: apt-key warning when sudo apt update run Update below file: cat /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list ...
-
Install htop in Oracle Linux 7 htop is not default install and it's not part of default repo so when we try to install htop it throw...
-
How to Stop Firewall on Oracle Linux 7 [root@ebs121db1 ~]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source ...
-
Oracle EBS 12.2.6 - DB Tire configuration error WARNING: [AutoConfig Error Report] The following report lists errors AutoConfig encounter...