Softpanorama
(slightly skeptical) Open Source Software Educational Society

May the source be with you, but remember the KISS principle ;-)

Softpanorama Search

NcFTP

News

FTP Protocol Recommended Links NetDrive FileZilla   FTP Security
LFTP Curl wget rsync   Humor Etc

NCFTP is an enhanced version of FTP that automates many of the login steps necessary with FTP and adds its own special features. Right now it is an outdated and is surpassed in quality and features by LFTP. It still have some historical important, though.

When logging into a remote site, NcFTP automatically sends the username and password strings for anonymous access for you. This lets you log in and arrive at the NCFTP prompt ( ncftp> ) with a minimum of typing. If you plan to log in as yourself rather than using anonymous FTP, you can start NCFTP with the -u option to disable the automatic login process.

Most NCFTP commands are identical to the standard FTP commands. The same commands are used for moving files, changing directories, listing directory contents, and so on.

One nice feature of NCFTP is that it displays the current directory path on the remote site at each ncftp> prompt.

In addition, NCFTP remembers the last directory you accessed on a site; the next time you log into that site, you will be placed back at that directory automatically.

Name completion for remote hostnames is another feature of NCFTP. For example, if you've logged into the site ftp.skywalker.jedi.com before, the next time you need to access this site, you can just enter:

  ncftp jedi

NCFTP will then search its database looking for a complete site name that contains the string jedi. If it finds one, then it will go to that site and log you in.

To get a list of NCFTP commands, at the ncftp> prompt, enter a question mark ( ? ).


Notes:
  • This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Some amount of grammar and spelling errors should be expected.
  • The site contain some broken links as it develops like a living tree... Please try to use Google, Open directory, etc. to find a replacement link (see HOWTO search the WEB for details). We would appreciate if you can mail us a correct link.
Google Search
Open directory

Research Index


Old News ;-)

[Mar 14, 2006] Linux.com Upload directories recursively with NcFTP

I recently had to upload some content to a Web site, and the only access available was via FTP. I needed an FTP client capable of uploading a directory structure recursively. I found what I needed in an application called NcFTP.

I started by looking into Mozilla Firefox, but to my surprise, Firefox supports only FTP downloads, not uploads. Mozilla, on the other hand, does support uploads, but it can upload only one file at a time.

Next, I turned to command-line FTP clients. Again, the standard FTP command doesn't support recursive directory upload. Fortunately, many graphical and command-line FTP clients do, including NcFTP, yafc, and LFTP. I picked NcFTP.

After installing the software, connect to your host anonymously by entering the ncftp command followed by the hostname:

ncftp ftp.somedomain.com

or if you need to log in with a valid username, use the -u and -p parameters:

ncftp -u username -p password ftp.somedomain.com

A successful connection puts you in an NcFTP shell. If you've used the standard FTP command before, you should feel right at home here. I'll presume you're familiar with basic FTP commands such as dir and cd. You can use the lls and the lcd commands to list and navigate the local working directory.

NcFTP supports autocompletion for both commands and filenames. For instance, you can type in the first few characters of a filename and then press Tab to fill in the rest of the name automatically.

Recall that my main goal was to upload a directory structure. Use the put -R command to do a recursive directory upload:

ncftp /path > put -R somedir

Standard FTP also supports a put command, but it's limited to uploading single files.

Similarly, you can download a directory recursively using the NcFTP get -R command:

ncftp /path > get -R somedir

More handy features

If you FTP to the same sites regularly, you can save time by using NcFTP's bookmark feature. Bookmarks store the connection information, including the username, the password, the hostname, and the target directory location.

To create a bookmark on a particular directory location, first navigate to that directory and then enter the bookmark command followed by a name to identify the bookmark. For example, type these commands to bookmark /path/somedir and name it topsecret:

ncftp /path > cd somedir
ncftp /path/somedir > bookmark topsecret

A bookmark editor lets you open, edit, delete, replicate, and add bookmarks. Invoke the editor by entering the bookmarks command with no parameters:

ncftp /path > bookmarks

Once you create a bookmark, you can connect to the corresponding host and directory quickly by using the bookmark name. Login is automatic because the bookmark stores the username and password.

For instance, you can connect using a bookmark named topsecret by entering this command in the Linux shell:

ncftp topsecret

Alternatively, you can open a connection while inside the NcFTP shell:

ncftp> open topsecret

Wrapping it up

File Transfer Protocol (FTP) was once a commonly used method for transferring files over the Internet, but recent security concerns have lessened its use in favor of the more secure SSH File Transfer Protocol (SFTP) or Secure Copy (SCP). Nevertheless, FTP may be the only access available to you on occasion.

NcFTP is loaded with useful features. I've touched on only the basics. If you ever require an FTP client more powerful than the standard FTP command, consider NcFTP.

AppWatch.ZDNet.com NcFTP

 Powerful command-line FTP client for UNIX. Includes NcFTPPut and NcFTPGet, which support FTP for shell scripts. Source code is available.

Recommended Links


In case of broken links please try to use Google search. If you find the page please notify us about new location
Google     



Copyright © 1996-2009 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Site uses AdSense so you need to be aware of Google privacy policy. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

Disclaimer:

Last modified: August 13, 2009