Keep file times and modes during copy.
Section: scp Basics
Preserve times and mode bits
bash
bash
scp -p ./file.txt user@example.com:/tmp/Explanation
Keep file times and modes during copy.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing scp Basics