Example uses of the Linux Command ftp
来源:互联网 发布:网上博客改数据赚钱 编辑:程序博客网 时间:2024/05/21 10:43
http://linux.about.com/od/commands/a/blcmdl1_ftpx.htm
下文件的时候,还是先切到binary后,比较容易成功。
The following examples illustrate typical uses of the command ftpfor remotely copying, renaming, and deleting files.
ftp abc.xyz.edu
This command will attempt to connect to the ftp server at abc.xyz.edu.If it succeeds, it will ask you to log in using a username andpassword. Public ftp servers often allow you to log in using theusername "anonymous" and your email address as password.Once you are logged in you can get a list of the available ftp commandsusing the help function:
ftp> help
This lists the commands that you can use to show the directory contents, transfer files, and delete files.
ftp> ls
This command prints the names of the files and subdirectories in the current directory on the remote computer.
ftp> cd customers
This command changes the current directory to the subdirecotry "customers", if it exists.
ftp> cd ..
Changes the current directory to the parent direcotry.
ftp> lcd images
Changes the current directory [em]on the local computer[/em] to "images", if it exists.
ftp> ascii
Changes to "ascii" mode for transferring text files.
ftp> binary
Changes to "binary" mode for transferring all files that are not text files.
ftp> get image1.jpg
Downloads the fileimage1.jpg from the remote computer to the local computer. Warning: Ifthere already is file with the same name it will be overwritten.
ftp> put image2.jpg
Uploads the fileimage2.jpg from the local computer to the remote computer. Warning: Ifthere already is file with the same name it will be overwritten.
ftp> !ls
A '!' in front will execute thespecified command on the local computer. So '!ls' lists the file namesand directory names of the current directory on the local computer.
ftp> mget *.jpg
With mget you can download multiple images. This command downloads all files that end with ".jgp".
ftp> mput *.jpg
Uploads all files that end with ".jgp".
ftp> mdelete *.jpg
Deletes all files that end with ".jgp".
ftp> prompt
Turns iteractive mode on or off so that commands on multiple files are executed without user confirmation.
ftp> quit
Exits the ftp program.
- Example uses of the Linux Command ftp
- Example uses of the Linux Command ftp
- Example uses of the command "more"
- SQL:Example Uses of the SUBSTRING String Function
- SQL:Example Uses of the SUBSTRING String Function
- Example Uses of Function Pointers
- The uses of Application Engine
- List of FTP commands for the Microsoft command-line FTP client
- linux SCP ftp command
- Example of the SO_REUSEADDR Option
- The example of Using Executors
- An example of delegate Command to yet another Command.
- Linux Netcat command – The swiss army knife of networking
- Getting over the dangers of rm command in Linux---reference
- the diary for one command application of pipe in Linux
- the diary of sleep jobs & fg command line in linux
- 10 xargs command example in linux
- simple command of linux
- windows服务器详细安全设置
- 正则表达式
- linux usermod命令详解
- 常用hash算法
- 转载 真正解决activesync与wince5连接问题
- Example uses of the Linux Command ftp
- 复杂指针解读方法(待总结)
- linux vi 编辑器命令详解
- java 取客户端ip
- Linux系统下TOP命令使用与分析详解
- 关于my focus焦点图插件的介绍
- 关于应用程序出现窗口不完整,GDI对象猛增,GDI资源泄漏的问题的探讨
- hibernate之过滤与拦截
- C#中两个问号和一个问号