telnet uststf --- or --- telnet uststu |
cd public_html |
ftp ihome.ust.hk |
"bin" to change to binary mode.
"mput" and "put" to upload your files.
"bye" to exit ftp program.
ncftp works similar as standard UNIX ftp client. Besides that, it provides additional features such as "chmod" to change
permission mode bit on remote files.
ncftpput is a very handy and easy-to-use ftp client program which can
let you publish the whole web site by just issuing one command.
It is also flexible that you can only choose specific files to publish.
telnet uststf --- or --- telnet uststu |
cd public_html |
ncftpput -u <username> ihome.ust.hk <remote-dir> <local-files...> |
-u <username> | specify user name | |
<remote-dir> | your web space directory in iHome server | |
<local-files> | files in your local machine that you want to transfer to remote machine |
e.g. User ccdemo want to transfer index.html and about.html to the root directory of his web space in iHome server.
ncftpput -u ccdemo ihome.ust.hk / index.html about.html |
ncftpput -R -u <username> ihome.ust.hk <remote-dir> <local-files...> |
-R | recursive mode | |
-u <username> | specify user name | |
<remote-dir> | your web space directory in iHome server | |
<local-files> | files in your local machine that you want to transfer to remote machine |
e.g. User ccdemo want to transfer the current directory tree to the root directory of his web space in iHome server.
ncftpput -R -u ccdemo ihome.ust.hk / . |