[리눅스공통] CLI 에서 FTP 사용법
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 " 라고 입력을 안해줘도 파일이 내려받아지도록 하는 것 이다. (파일이 많을 경우 편함)
'OS&기타 > Linux' 카테고리의 다른 글
SYSLOG 서버 만들기 (CentOS 6.9) (0) | 2019.08.14 |
---|---|
[리눅스공통] tcpdump 패킷 필터 (SYN, SYN-ACK, ACK 별 필터 방법) (0) | 2019.08.01 |
[리눅스공통] 리눅스의 특징 (장점, 단점) (0) | 2019.04.27 |
[리눅스공통] tar 사용법 (gz, bz2, xz) (0) | 2019.04.05 |
[CentOS-6.X] 리눅스를 NTP 서버로 만들기 (시간동기화 서버) (0) | 2019.04.05 |