标签:cat local open div receive connected warning ppi 状态
[root@Check3 ~]# cat /etc/redhat-release CentOS release 6.9 (Final) [root@Check3 ~]# uname -a Linux Check3 2.6.32-696.16.1.el6.x86_64 #1 SMP Wed Nov 15 16:51:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@Check3 ~]# yum -y install ftp
格式fit IP 端口
[root@Check3 ~]# ftp 192.168.1.10 22 Connected to 192.168.1.10 (192.168.1.10). 220-##################################################### 220-FileZilla Server version 0.9.46 beta 220-Welcome To Elements FTP 220 ##################################################### Name (192.168.1.10:root): Admin 331 Password required for admin Password: 230 Logged on Remote system type is UNIX.
ftp> status Connected to 192.168.1.10. No proxy connection. Mode: stream; Type: ascii; Form: non-print; Structure: file Verbose: on; Bell: off; Prompting: on; Globbing: on Store unique: off; Receive unique: off Case: off; CR stripping: on Ntrans: off Nmap: off Hash mark printing: off; Use of PORT cmds: on Tick counter printing: off
ftp> system 215 UNIX emulated by FileZilla
ftp> dir 227 Entering Passive Mode (192.168.1.10,80,7) 150 Opening data channel for directory listing of "/" drwxr-xr-x 1 ftp ftp 0 Oct 19 2018 WCY drwxr-xr-x 1 ftp ftp 0 Aug 21 2018 *** drwxr-xr-x 1 ftp ftp 0 Dec 10 10:40 *** drwxr-xr-x 1 ftp ftp 0 Dec 03 13:29 *** drwxr-xr-x 1 ftp ftp 0 Nov 01 2018 *** drwxr-xr-x 1 ftp ftp 0 Nov 19 16:38 *** drwxr-xr-x 1 ftp ftp 0 Dec 12 17:47 *** drwxr-xr-x 1 ftp ftp 0 Nov 21 10:34 *** 226 Successfully transferred "/" ftp> ls 227 Entering Passive Mode (192.168.1.10,80,9) 150 Opening data channel for directory listing of "/" drwxr-xr-x 1 ftp ftp 0 Oct 19 2018 WCY drwxr-xr-x 1 ftp ftp 0 Aug 21 2018 *** drwxr-xr-x 1 ftp ftp 0 Dec 10 10:40 *** drwxr-xr-x 1 ftp ftp 0 Dec 03 13:29 *** drwxr-xr-x 1 ftp ftp 0 Nov 01 2018 *** drwxr-xr-x 1 ftp ftp 0 Nov 19 16:38 *** drwxr-xr-x 1 ftp ftp 0 Dec 12 17:47 *** drwxr-xr-x 1 ftp ftp 0 Nov 21 10:34 *** 226 Successfully transferred "/"
ftp> cd WCY 250 CWD successful. "/WCY" is current directory. ftp> pwd 257 "/WCY" is current directory.
ftp> mkdir test 257 "/WCY/test" created successfully ftp> ls 227 Entering Passive Mode (192.168.1.10,80,12) 150 Opening data channel for directory listing of "/WCY" drwxr-xr-x 1 ftp ftp 0 Dec 19 10:57 test 226 Successfully transferred "/WCY"
ftp> rmdir test 250 Directory deleted successfully ftp> ls 227 Entering Passive Mode (192.168.1.10,80,13) 150 Opening data channel for directory listing of "/WCY" 226 Successfully transferred "/WCY"
cdup 或 cd ..
chmod 权限 文件
ftp> put /root/test.wcy /WCY/test.wcy local: /root/test.wcy remote: /WCY/test.wcy 227 Entering Passive Mode (192.168.1.10,80,16) 150 Opening data channel for file upload to server of "/WCY/test.wcy" 226 Successfully transferred "/WCY/test.wcy" 21 bytes sent in 3.3e-05 secs (636.36 Kbytes/sec) ftp> cd /WCY 250 CWD successful. "/WCY" is current directory. ftp> ls 227 Entering Passive Mode (192.168.1.10,80,17) 150 Opening data channel for directory listing of "/WCY" -rw-r--r-- 1 ftp ftp 21 Dec 19 11:03 test.wcy 226 Successfully transferred "/WCY"
mput local-files
ftp> ls 227 Entering Passive Mode (192.168.1.10,80,34) 150 Opening data channel for directory listing of "/WCY" -rw-r--r-- 1 ftp ftp 243456000 Oct 19 2018 MySQL-5.6.41-1.el7.x86_64.rpm-bundle.tar -rw-r--r-- 1 ftp ftp 21 Dec 19 11:03 test.wcy 226 Successfully transferred "/WCY" ftp> delet MySQL-5.6.41-1.el7.x86_64.rpm-bundle.tar 250 File deleted successfully ftp> ls 227 Entering Passive Mode (192.168.1.10,80,35) 150 Opening data channel for directory listing of "/WCY" -rw-r--r-- 1 ftp ftp 21 Dec 19 11:03 test.wcy 226 Successfully transferred "/WCY"
mdelete [remote-files]
ftp> pwd 257 "/通用文件/linux/mysql" is current directory. ftp> get /通用文件/linux/mysql/perl-5.10.0.tar.gz /root/perl-5.10.0.tar.gz local: /root/perl-5.10.0.tar.gz remote: /通用文件/linux/mysql/perl-5.10.0.tar.gz 227 Entering Passive Mode (192.168.1.10,80,56) 150 Opening data channel for file download from server of "/通用文件/linux/mysql/perl-5.10.0.tar.gz" WARNING! 56500 bare linefeeds received in ASCII mode File may not have transferred correctly. 226 Successfully transferred "/通用文件/linux/mysql/perl-5.10.0.tar.gz" 15595020 bytes received in 0.33 secs (47322.31 Kbytes/sec)
mget [remote-files]
ftp> bye 221 Goodbye
内容整理至网络,如遇不懂的请自行baidu
标签:cat local open div receive connected warning ppi 状态
原文地址:https://www.cnblogs.com/LuckWJL/p/10142199.html