In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Description: log in to the ftp server remotely through ftp from the local machine logged in as user wasqry. 21.67. The login user name is lte****, below for the experiment of using this connection.
The command to view the files in the corresponding directory of the user lte**** on the remote ftp server is: ls, and after logging in to ftp, the command to view the files in the corresponding directory of the local machine user wasqry at the ftp command prompt is:! ls. The query ftp command can enter:? at the prompt, and then enter.
1. The command format for downloading files from a remote ftp server:
The name of the file to be downloaded under the current directory on the get remote ftp server [when downloaded to the current directory on the local machine], such as:
Get nmap_file [nmap]
It means to download the file nmap_file from the remote ftp server to the current directory on the local machine and change the name to nmap.
Parentheses indicate that you can write but not write, and if you don't write, you will download it under the file name.
If you want to upload files to the ftp server, you need to modify the vsftpd configuration file, the name is vsftpd.conf, in the / etc directory. To remove and save the "#" before "# write_enable=YES", then restart the vsftpd service:
Sudo service vsftpd restart .
2. The command format for uploading files to a remote ftp server:
The name of the file to be uploaded under the current directory on the put/mput local machine [file name when uploading to the current directory on the remote ftp server], such as:
Put/mput sample.c [ftp_sample.c]
It means to upload the file smaple.c in the current directory of the local machine to the current directory of the remote ftp server, and change the name to ftp_sample.c.
Parentheses indicate that you can write but not write, and if you don't write, it will be uploaded under the file name.
For example, the files such as download.sh in the figure are located in the linux system directory of the machine. Use the following command to upload the download.sh and other files under the current directory of the linux system to the current directory of the ftp server.
3. Finally, attach the common ftp commands, as follows:
FTP > open [ftpservername], 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, listing the directories and files under the current path on the remote Linux FTP server?
FTP > dir, listing the directories and files under the current path on the remote Linux FTP server (ditto)?
FTP > mkdir [foldname] to establish the 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 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 file specified on the remote Linux FTP server?
FTP > close, disconnect from the remote Linux FTP server but keep the FTP command parameter prompt?
FTP > disconnect, disconnect from the remote Linux FTP server but keep the FTP command parameter prompt (ibid.)?
FTP > bye to end the connection to the remote Linux FTP server.
FTP > quit to end the connection to the remote Linux FTP server (ibid.).
FTP >!, directly from the remote Linux FTP server into the local shell?
FTP > exit, return from the local shell environment to the remote Linux FTP server environment?
FTP >! ls, listing the directories and files under the current path on the local machine?
FTP > lcd [foldname], change the working directory of the local machine?
FTP >?, display the ftp command description?
FTP > help, display the ftp command description (ibid.)?
Summary
The above is the ftp file upload and download command introduced by the editor to you. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply you in time. Thank you very much for your support to the website!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.