In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to use the mget command to obtain ftp files in Linux, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Mget
After logging in to the mftp server using lftp, you can use the mget directive to get the file from the server. Mget instructions can use wildcards, while get instructions cannot.
1. Grammar
Mget [- E] [- a] [- c] [- d] [- O base] rfile
2. List of options
Option
Description
-d
Create a directory with the same name as the file, and store the file here
-c
If it fails, continue to get
-E
After getting it, delete the source file
-a
Use ascii mode
-O
Specify the directory where the output files are stored
3. Examples
Use wildcards to get files
[root@localhost weijie] # lftp 192.168.1.8 / / Log into the server
Lftp 192.168.1.8 ~ > cd pub/ switch directories
Lftp 192.168.1.8:/pub > ls / / View content
-rwxrwxrwx 1 0 2375494044 Aug 14 06:38 1.zip
-rw-r--r-- 1 000 Oct 02 01:19 11c
-rw-r--r-- 1 000 Oct 02 01:19 22c
Drwxr-xr-x 2 0 0 4096 Oct 02 01:12 testftp
Lftp 192.168.1.8:/pub > mget * c / / get the file whose name contains c
Total 2 files transferred
Lftp 192.168.1.8:/pub > quit / / exit
You have new mail in / var/spool/mail/root
[root@localhost weijie] # ls / / View the content and get the file
1 11c 1.zip 2.c.bz2 4.c 6.c ~ rec000012.c.bz2
1. 11.c 22c 3.c 5.c col res.zip
The above is how to use the mget command in Linux to obtain ftp files. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow 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.
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.