[리눅스공통] CLI 에서 FTP 사용법

Posted by nkjok
2019. 7. 16. 13:07 OS&기타/Linux
반응형

root:~# ftp
ftp> open 192.168.100.10
Connected to 192.168.100.10 (192.168.100.10).
220 (vsFTPd 2.2.2)
Name (192.168.100.10:admin): sdf
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
ftp> prompt
Interactive mode off.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxr-xr-x 2 0 0 4096 Jul 16 03:52 temp
drwxrwxrwx 2 500 500 4096 Jun 14 08:49 test1
d------rwx 2 500 500 4096 Jun 15 03:31 test2
drwxr-xr-x 2 500 500 4096 Oct 24 2018 공개
drwxr-xr-x 2 500 500 4096 Jun 14 07:10 다운로드
drwxr-xr-x 2 500 500 4096 Oct 24 2018 문서
drwxr-xr-x 3 500 500 4096 Jun 14 09:08 바탕화면
drwxr-xr-x 2 500 500 4096 Oct 24 2018 비디오
drwxr-xr-x 2 500 500 4096 Oct 24 2018 사진
drwxr-xr-x 2 500 500 4096 Oct 24 2018 음악
drwxr-xr-x 2 500 500 4096 Oct 24 2018 템플릿
226 Directory send OK.
ftp> cd temp
250 Directory successfully changed.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rw-r--r-- 1 0 0 500207616 Sep 23 2018 SS1
-rw-r--r-- 1 0 0 606031872 Sep 23 2018 SS2
-rw-r--r-- 1 0 0 445790208 Sep 23 2018 SS3
-rw-r--r-- 1 0 0 538097664 Sep 23 2018 SS4
-rw-r--r-- 1 0 0 1003026432 Apr 05 2018 SS5
-rw-r--r-- 1 0 0 865665024 Sep 23 2018 SS6
226 Directory send OK.
ftp> mget SS*
local: SS1 remote: SS1
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for SS1 (500207616 bytes).

 

# prompt 설명
ftp> mget SS*
mget SS1? y
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for SS1 (1003026432 bytes).
226 Transfer complete.
1003026432 bytes received in 110 secs (8.9e+03 Kbytes/sec)

해설 = " y " 라고 입력을 안해줘도 파일이 내려받아지도록 하는 것 이다. (파일이 많을 경우 편함)

반응형