Linux_ftp _ command-line command application for downloading file get and uploading file put

Source: Internet
Author: User
Tags ftp commands remote ftp server
Linux_ftp _ command line download file get and upload file put command application Shao: Remotely log on to the ftp server 192.168.0.6 from the local machine 192.168.0.16 logged on with the user anok, the logon username is peo. The following is an experiment with this connection. Www.2cto.com... linux_ftp _ command line download file get and upload file put command application Shao: Remotely log on to the ftp server 192.168.0.6 from the local machine 192.168.0.16 logged on with the user anok, the logon username is peo. The following is an experiment with this connection. Run the following command on www.2cto.com to view files in the corresponding directory of the user peo on the remote ftp server: ls, after logging on to ftp, run the following command at the ftp command prompt to view the files in the corresponding directory of the local machine user anok :! Ls. To query ftp commands, enter :?, Then press Enter. 1. command format for downloading files from a remote ftp server: get the file name to be downloaded under the current directory on the remote ftp server [the file name downloaded to the current directory on the local machine], for example: get nmap_file [nmap] means to download the file nmap_file from the remote ftp server to the current directory of the local machine and change the name to nmap. It can be written or not written. if not written, it is downloaded using the file name. To upload files to the ftp server, modify the vsftpd configuration file named vsftpd. conf in the/etc directory. Remove and save "#" before "# write_enable = YES", and restart the vsftpd service: sudo service vsftpd restart. Www.2cto.com 2. command format for uploading files to remote ftp server: put the file name to be uploaded under the current directory on the local machine [file name uploaded to the current directory on the remote ftp server], for example: put sample. c [ftp_sample.c] indicates the smaple file in the current directory of the local machine. c. upload the file to the current directory of the remote ftp server and change the name to ftp_sample.c. It can be written or not written. if not written, the file name is used for uploading. 3. attach the ftp common commands as follows: FTP> open [ftpservername] to connect to the specified remote Linux FTP server? FTP> user [username] [password], which is used to log on to the FTP server of the specified remote Linux server? FTP> pwd: displays the current path on the remote Linux FTP server? FTP> ls: list the directories and files in the current path on the remote Linux FTP server? FTP> dir: list the directories and files in the current path on the remote Linux FTP server (same as above )? FTP> mkdir [foldname]: Create a specified directory in the current path on the remote Linux FTP server? FTP> rmdir [foldname], delete the specified directory in the current path on the remote Linux FTP server? FTP> cd [foldname], change the working directory on the remote Linux FTP server? FTP> delete [filename]: delete the specified file on the remote Linux FTP server? FTP> rename [filename] [newfilename], rename the specified file on the remote Linux FTP server? FTP> close, disconnect from remote Linux FTP server but keep the FTP command parameter prompt? FTP> disconnect, disconnect from remote Linux FTP server but keep the FTP command parameter prompt (same as above )? FTP> bye to end the connection to the remote Linux FTP server. FTP> quit to end the connection to the remote Linux FTP server (same as above ). FTP> !, Directly from the remote Linux FTP server to the local shell? FTP> exit, (next step) is returned from the local shell environment to the remote Linux FTP server environment? FTP>! Ls to list the directories and files in the current path on the local machine? FTP> LCD [foldname], change the working directory of the local machine? FTP> ?, Show ftp Command description? FTP> help, which shows the ftp Command description (same as above )? So far.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.