copy all files within a folder and send it remote in linux code example Example: scp all files in directory scp -r myfoldername [email protected]:/home/myfoldername