helps you achieve understanding, develop good practices, and operate your team and organization for maximum DevOps awesomeness
Showing posts with label md5sum. Show all posts
Showing posts with label md5sum. Show all posts
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)
Azure AKS - Diag Logs - KQL
AzureDiagnostics | where Category == "kube-audit" | summarize requests = count() by bin(TimeGenerated, 5m), userAgent_s | orde...
-
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...
-
Logs from the autoconfig file: START: Executing /u01/EBSDEV/fs1/inst/apps/EBSDEV_grcldm/admin/install/txkWfClone.sh -nopromptmsg txkWfC...
-
Take a full backup of the database db_full.tz check the checksum of the backupfile md5sum db_full.tz split backup into multiple file s...