finish copyFromLocal, ls, rm, cat; lots of clean job needed