본문 바로가기
Operating System/Linux

[Linux] ftpget 명령어 사용법 - ftp Client 올바르게 사용하기

by 근육곰돌이 2019. 1. 4.
728x90

ftpget이란?

- ftp 서버의 파일 가져올 수 있는 서드파티 명령어 입니다.


[사용 옵션]

Usage: ftpget [options] remote-host local-file remote-file
Options:
          -c, --continue
          -v, --verbose
          -u, --username
          -
p, --password
          -P, --port

 


[예시]

ftpget -v -P [portnumber] -u [endfirst] -p [1234] [10.1.1.11] [test.conf] [/etc/test.conf]

endfirst : 사용자명

1234 : 패스워드

10.1.1.11 : 파일이 있는 IP

test.conf : 가지고 오고 싶은 파일명

/etc/test.conf : 가지고 오고 싶은 파일명의 풀 패스

 

 

[참고]

ftpput 이용할 있다.

ftpput ftpget 동일한 옵션을 사용하면 된다.

 

 

 



[man 페이지]

ftpget source

ftpget(1)                    General Commands Manual                   ftpget(1)

NAME
       ftpget - Get files fast from the commandline

SYNTAX
      
ftpget [options] host filename [-o local] [filename] ...

VERSION
       This man page documents ftpget version 2.0. Note that ftpget is
       deprecated and it is recommended to use scripting capabilities of
lftp.

DESCRIPTION
      
ftpget is a program that gets the given filename from the indicated host.
       Multiple filenames can be specified. If a filename needs to be redirected
       to another local file then use the
-o option.

OPTIONS
      
-p, --port
              Set port number

-u, --user
              login as user using pass as password

-l, --list
              Get listing of specified directories

-c, --continue
              Reget specified file(s)

-q, --quiet
              Run quietly (no output).

-v, --verbose
              Run verbosely (lots of output).

--async-mode
              Use asynchronos mode (faster)

--sync-mode
              Use synchronos mode (compatible with bugs)

-o file
              output to local file 'local' (default - base name of filename)

SEE ALSO
      
lftp(1)

AUTHOR
       Alexander V. Lukyanov
       lav@yars.free.net

ACKNOWLEDGMENTS
       This manual page was originally written by Christoph Lameter
       <clameter@debian.org>, for the Debian GNU/Linux system.


반응형