首页 > 科技 > ftp command’s list

ftp command’s list

2005年8月3日 23点41分 发表评论 阅读评论

I modified the “/etc/rc.d” file by adding “swapon /Swapdir/Swapfile” strings in order to run this command automatically when system start up.

ftp command
Formation: ftp -v -d -i -n -g [hostname]
-v : display all responsable messages
-d : debug mode
-i : elimitate automatical logining
Inner commands of ftp:
1. ![cmd[args]] : use the local shell in ftp command statue.
2. account[passwd] : supply the username and password
3. bye : turn off the ftp session.
4. cd remote-dir : cd the directory of remote-host
5. cd up : cd Up level directory
6. close : shutdown ftp connection between localhost and remote server
7. delete remote-file
8. debug[debug value]
9. dir : list all directories and files in the remote host.
10. disconnect : = close
11. get remote-file [local-file] : download file from remote host to local host.
12. hash : it will display a “#” after every 1024 bit has been transferred.
13. open host [port] : identify the remote host and its port
14. put local-file [remote-file] : upload file from localhost to remote host.
15. pwd : show the current working directory of remote host.
16. recv : = get
17. reset : clear message queue.
18. send local-file [remote-file] : = put
19. size file-name : show the file size of remote host
20. status : show the current ftp status
21. system : show the operated system of remote host
22. user username [passwd] [account] : indicate user’s profile to remote host.

If the ftp server permits,we could issue the following command to change user’s passward:

ftp> quote "site pswd oldpasswd newpasswd" 

In the Linux,there is a ftp tool named “lftp”,for example:

# lftp remote-host
# lftp > open remote-name
# lftp > user username
...... 

(testing ftp: 219.133.55.11 username:product)

分类: 科技 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.
您必须在 登录 后才能发布评论.