Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.08 KB

ncftp-commands-reference-by-example-cookbook.adoc

File metadata and controls

36 lines (23 loc) · 1.08 KB

ncftp Ftp Client Commands example cookbook

Connect to remote FTP server specifying username and password on the command line

Warning
This means that username/password can be seen by other users logged in on the machine (if any)
ncftp -u ftpuser -p qwe123 ftp.slackware.com
Here:
  • -u user: specify username on the FTP server

  • -p password: specify password of FTP user

  • ftp.slackware.com: FTP server domain name or IP address to connect to.

After connecting we can issue FTP client commands on the prompt.

Upload a file renaming it at the destination

ncftp will not upload a file if a file with the same name exists in the destination server. To still upload such file, we can rename it using -z option. Upload file named manifesto-1.pdf to the FTP server renaming it to manifesto-2.pdf

ncftp / > put -z manifesto-1.pdf manifesto-2.pdf
manifesto-1.pdf:                                        11.40 kB    2.49 MB/s