리눅스 - scp 로 원격 파일 복사


scp [계정]@[서버주소]:[소스경로] [받을경로]

scp에 -r 옵션을 주어 디렉토리를 받을 수도 있다

예를 들어)
scp jhcho@cdev1.embider.com:/home/tftp/hddapps_KT_$FIRMWARE.tar.gz ~/MegaTV/USBFirmware/
거꾸로 해도 됨. 즉, 로컬의 파일을 원격지로 보낼 수도 있다.

예를 들어)
scp /home/xxxx/test.txt xxxx@xxx.xxx.xxx.xxx:/home/xxxx

일반적인 사용법은
scp [보낼파일] [받을파일]



출처 : http://www.comsvc.kr/xe/index.php?mid=comsvc_tip02&listStyle=list&order_type=desc&page=2&document_srl=3836&sort_index=readed_count

댓글

이 블로그의 인기 게시물

오라클 날짜 비교 평균일수 구하기