Linux ncftp client software

Source: Internet
Author: User
Tags ftp port number

1. Introduction to ncftp
Compared with traditional FTP, ncftp has the following improvements or changes: For details, see its official website: http://www.ncftp.com/
(1) download the entire directory and Its subdirectories using recursive methods.
(2) supports resumable data transfer. One transmission is not completed. You can transfer unfinished files next time.
(3) Anonymous FTP automatic logon. Currently, most FTP sites can log on anonymously, while ncftp can log on automatically (default ).
(4) supports transmission through the firewall and proxy server.
(5) supports the bookmarks function. You can place a position in the bookmarks to facilitate future jump.
(6) The download progress is displayed.
(7) display the transmission rate.
(8) The file list is automatically suspended when the page is full. When the LS file list exceeds one screen, ncftp will automatically pause and wait for any key to continue.
(9) data is transmitted in binary format by default.
(10) Supports automatic completion of file names. For example, if the server has a file download. list, you only need to enter get down <tab>, the system can automatically fill in the file name as download. List.
(11) automatically remembers the directory when the site leaves. The directory will be automatically accessed upon next login.

2. Compile and install:
# Wget
Ftp://ftp.ncftp.com/ncftp/ncftp-3.2.3-src.tar.gz
# Tar zxvf ncftp-3.2.3-src.tar.gz
# Cd ncftp-3.2.3/
#./Configure -- prefix =/usr/local/ncftp
# Make & make install

3. ncftp Command Parameters
(1) ncftpput Command Parameters

You can automatically connect to and upload data in a shell script.
-U ftp account
-P ftp Password
-P ftp port number
-M: try to create a directory in the directory location before uploading (for storing Directories)
-R sub-directory for rule Transfer
# Ncftpput-u ftp account-p ftp password-p ftp port-m-r <FTP Server IP> <remote directory> <local directory>

Example:
Upload all files and directories in the local/etc/directory to the FLV/games/directory on the FTP server (if the FLV/games/directory does not exist, it is automatically created ).
#/Usr/local/ncftp/bin/ncftpput-u koumm-P 21-m-r 192.168.162.20.flv/games // etc /*

(2) ncftp Command Parameters
ASCII cat get lookup mkdir PWD set
Bgget CD help lpage open quit show
Bgput chmod jobs lpwd page quote site
Bgstart close LCD lrename passive rename type
Binary debug lchmod lrm pdir rhelp umask
Bookmark dir lls lrmdir pls rm version
Bookmarks edit lmkdir ls put rmdir

Command description:
The basic commands of ncftp are the same as those of common ftp. You can enter help to obtain the command list. For all commands, you can use the help <command> Format for detailed help. L starts with commands executed locally, and other commands are the operation commands for the FTP service directory that you log on.
Operation commands for the added local file system:
LLS: list local current directory files;
Lmkdir: create a local directory;
Lrename: Rename the local file;
Lpwd: displays the current local path;
Lchmod: Change local file permissions;
Lpage: displays the content of a local file;
Lrm: delete local files;
Lrmdir: Delete the local directory.

Example 1: anonymous login without user login
Ncftp 192.168.162.138
Ncftp/>

Example 2: Upload
Command Description: The target directory from the LCD to the local device. the put-r directory name.
Ncftp 192.168.162.138
Ncftp/> LCD/DATa
Ncftp/> lls
ABC/bak/DDD/
Ncftp/> put-r ABC

Ncftp/> put-H
Usage: put [-flags] file1 [file2. ..]
Flags:
-Z: Send the local file file1, and name the remote copy to file2.
-F: Force overwrite (do not try to auto-resume transfers ).
-A: Send files using ASCII mode.
-A: append entire local file to the remote file.
-R: recursive. Useful for sending whole directories.
Ncftp/>
Note: after testing, the Upload Command provides better support for the Directory delivery rules. Sub-directories and their files can be uploaded, and downloading will not work. You can only download the first-level directories and files under the current directory, sub-directories won't work.

(3) ncftpget
Format:
Ncftpget-u account-P password Remote Server IP address upload directory local file upload
Example:
# Ncftpget-u anonymous 218. 108. *. */DATa/pub/ftp.gz

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.