Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to download file get and upload file put in Linux ftp

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Xiaobian to share with you how to use the download file get and upload file put command in Linux ftp, I believe most people still don't know how to use it, so share this article for your reference, I hope you have a lot of harvest after reading this article, let's go and find out about it!

The command to view files under the corresponding directory of user peo on the remote ftp server is ls. After logging in to ftp, the command to view files under the corresponding directory of local machine user anok at the ftp command prompt is ls. ls。ftp query command can be entered at the prompt: ?, Then enter.

1. Command format for downloading files from remote ftp server:

get the file name to be downloaded from the current directory on the remote ftp server [the file name when downloaded to the current directory on the local machine], such as:

get nmap_file [nmap]

Download the file nmap_file from the remote ftp server to the current directory on the local machine and change the name to nmap.

The parenthesis indicates that it can be written or not, and if it is not written, it is downloaded with the file name.

If you want to upload files to the ftp server, you need to modify the vsftpd configuration file, named vsftpd.conf, in the/etc directory. To remove the "#" before "#write_enable=YES" and save it, restart the vsftpd service:

sudo service vsftpd restart。

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 when uploading to the current directory on the remote ftp server], such as:

put sample.c [ftp_sample.c]

This means that the file smaple.c in the current directory of the local machine is uploaded to the current directory of the remote ftp server, and the name is changed to ftp_sample.c.

The parenthesis indicates that it can be written or not, otherwise it is uploaded with the file name.

3. At the end, ftp common commands are attached, as follows:

FTP>open [ftpservername], and connect to the specified remote Linux FTP server.

FTP>user [username] [password], log in with the user of the specified remote Linux FTP server?

FTP>pwd, showing the current path on the remote Linux FTP server?

FTP>ls lists directories and files under the current path on the remote Linux FTP server.

FTP>dir lists directories and files under the current path on the remote Linux FTP server (ditto).

FTP>mkdir [foldname] to create a specified directory under the current path on the remote Linux FTP server.

FTP>rmdir [foldname], delete the specified directory under the current path on the remote Linux FTP server?

FTP>cd [foldname], Change working directory on remote Linux FTP server?

FTP>delete [filename], delete the specified file on the remote Linux FTP server?

FTP>rename [filename] [newfilename], rename a specified file on a remote Linux FTP server?

FTP>close, disconnect from remote Linux FTP server but keep FTP command parameter prompt?

FTP>disconnect, disconnect from remote Linux FTP server but keep FTP command parameter prompt (ditto)?

FTP>bye, ends the connection to a remote Linux FTP server.

FTP>quit, ends the connection to a remote Linux FTP server (ditto).

FTP>!,Directly from a remote Linux FTP server into a local shell?

FTP>exit,(continued) Return from local shell environment to remote Linux FTP server environment?

FTP>! ls, lists directories and files under 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, showing ftp command instructions (ditto)?

The above is "Linux ftp download file get and upload file put command how to use" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report