Table of Contents
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.
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