Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
development:linux:file_management [2020/03/02 15:18] kalenpw |
development:linux:file_management [2021/06/29 15:06] (current) kalenpw |
||
---|---|---|---|
Line 15: | Line 15: | ||
# unlike cp trailing slash does not have affect. scp will always copy the source_dir | # unlike cp trailing slash does not have affect. scp will always copy the source_dir | ||
scp -rP 2222 kalenpw@kalenpw.com:/ | scp -rP 2222 kalenpw@kalenpw.com:/ | ||
+ | # use an ssh alias in scp | ||
+ | scp ./file.txt khalidor:/ | ||
</ | </ | ||
Line 26: | Line 28: | ||
rsync -r source/ ./dest/ --delete # delete files in dest that didn't exist in source | rsync -r source/ ./dest/ --delete # delete files in dest that didn't exist in source | ||
</ | </ | ||
+ | ---- |