update the copy function in linux