FTP Clients
Console
ftp
Usagencftpput
ftp [-pinegvd] [host]Options
Commands
- -i : Turn off interactive prompting
- open <host> [port] // Open a connection to the server.
- user <user-name> <password> [account] // Login
- close // Disconnect from the server
- bye // Exit ftp; aka quit
- get <remote-file> [local-name] // Download a remote file; aka recv
- put <local-file> [remote-name] // Upload a local file; aka send
- delete <file> // Delete a remote file
- mget <remote-files> // Download remote files
- mput <local-files> // Upload local files
- mdelete <remote-files> // Delete remote files
- rename [from] [to] // Rename a remote file
- verbose // Toggle verbosity (default is on)
- prompt // Toggle interactive prompting (default is on)
- binary // Switch to binary mode
- ascii // Switch to text mode (default)
- system // Show type of operating system on the server
- ! [command [args]] // Run a shell command on the local machine
Usage
- Internet file transfer program for scripts
Options
- ncftpput [options] <remote-host> <remote-dir> <local-files>
- ncftpput -f login.cfg [options] <remote-dir> <local-files>
- ncftpput -c <remote-host> <remote-path-name> < stdin
Examples
- -f <file> (read the specified file for host, user, and password info)
- -R (copy directory trees recursively)
- -m (attempt to make the remote destination directory before copying)
- -a (use ascii transfer type instead of binary)
- -d <file> (use the specified file for debug logging)
- -r <number> (maximum number of times to redial until connected)
- -t <number> (time out after specified number of seconds)
- -c (pipe the output from any local command into a remote file, using stdin for input)
- ncftpput -R ftp.somewhere.com /remote /local/data
- tar cf - / | ncftpput -c ftp.somewhere.com /remote/backup.tar