Article Title: A good FTP client software under Linux Command Line. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I borrowed my brother department to put some video files in the space of N servers nationwide. Since I only opened an FTP account, I found a Linux Command Line FTP client software named ncftp, used for batch upload of the entire directory. Ncftpput is a companion program. It is very convenient to call ncftpput in shell scripts to upload files to the FTP server.
For details, see its official website: http://www.ncftp.com/
Compile and install:
Wget ftp://ftp.ncftp.com/ncftp/ncftp-3.2.2-src.tar.gz Tar zxvf ncftp-3.2.2-src.tar.gz Cd ncftp-3.2.2/ ./Configure -- prefix =/usr/local/ncftp Make & make install |
For example, set all the files and directories in the local/data0/htdocs/videofile/flv/games/directory, upload to the flv/games/directory of the FTP server (if the flv/games/directory does not exist, it is automatically created ).
/Usr/local/ncftp/bin/ncftpput-u FTP account-p FTP password-p ftp port-m-R 192.168.1.2 flv/games // data0/htdocs/videofile/flv/ games /* |