기본 콘텐츠로 건너뛰기

cURL을 이용하여 FTP로 파일 올리기

로컬 파일을 원격에 전송할 때는 '-T [local file]' 옵션을 사용한다. 뒤에 URL이 HTTP면 'PUT'을 사용한다. (물론 FTP도 동일 명령이긴 하지만 명령 형식이 좀 다르다.)
$ curl -T file -u 'ID:PASSWORD' 'ftp://URL'

예) 로컬파일 'purewell.txt'를 'dev.purewell.biz'서버의 '/tmp' 디렉토리에 업로드
$ curl -T 'purewell.txt' -u 'purewell:helloworld' 'ftp://dev.purewell.biz//tmp'

댓글

이 블로그의 인기 게시물

탐색기에서 OneDrive 이 2개로 보이는 문제

왜 2개가 보이는지 모르겠지만, Registry 삭제하면 됨 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace 하위 키에서 OneDrive 둘 중에 하나만 지워도 바로 반영됨. 참조:  https://answers.microsoft.com/en-us/msoffice/forum/all/duplicate-onedrives-in-file-explorer/49c935a6-287b-43a5-aed5-2dee2a1c1b22