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 use mirror command to get ftp directory in Linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Today, I will talk to you about how to use the mirror command to get the ftp directory in Linux. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

Mirror

After logging in to the ftp server using lftp, you can use the mirror directive to get the directory from the server

1. Grammar

Mirror [OPTS] [source [target]]

2. List of options

Option

Description

-c

If it fails, continue to get

-n

Download only new files

-r

Do not download subdirectories

-p

No permissions are set when downloading

-L

Treat symbolic links as files

3. Examples

Get the directory

[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 > mirror testftp/ download directory

Total: 1 directory, 2 files, 0 symlinks

New: 2 files, 0 symlinks

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 directory

1 11c 1.zip 2.c.bz2 4.c 6.c ~ rec000012.c.bz2 testftp

1. 11.c 22c 3.c 5.c col res.zip

[root@localhost weijie] #

After reading the above, do you have any further understanding of how to use the mirror command to get the ftp directory in Linux? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

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