I have a strange issue that makes no sense, at least not to me. Any help is appreciated.
This method only copies about 1GB of the 1.4GB file
#!/bin/bash
cp /home/buildskel/large1.4gbfile $HOME
This method, "not running in a script" copies the complete file
cp /home/buildskel/large1.4gbfile $HOME
cp
manually as a single command always copies the whole thing? Is the script you've shown us literally what you are running, or does your script have other lines also? What's the output ofecho $?
, run immediately after executing your script? What is it when run after running thecp
command manually? (Please edit with this info--thanks!)