1

we have huge file as

du -sh *

7.7G    HDP-2.6.5.0-centos7-rpm.tar.gz

and we want to separate the file to 5 files as

HDP1
HDP2
HDP3
HDP4
HDP5

and later I want to revert all HDP* to HDP-2.6.5.0-centos7-rpm.tar.gz

how to separate the file - HDP-2.6.5.0-centos7-rpm.tar.gz to 5 files ?

the aim of this task is to transfer the files by network because if we transfer file that more then 5G , then we faced transferring problem

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255
yael
  • 13,106

1 Answers1

2

You want to look at the split command.

John
  • 17,011
  • my example - split -b 1000M HDP-2.6.5.0-centos7-rpm.tar.gz "HDP" , please add it to your answer – yael Jul 02 '19 at 13:37