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 get to get ftp File in Linux

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article introduces the relevant knowledge of "how to use get to obtain ftp files in Linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Get

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

1grammar *, syntax * *

Get [- E] [- a] [- c] [- O base] rfile [- o lfile]

2options *, option list * *

Option description-o specifies the name of the output file. If it is not specified, the original name is used-c if failed, continue to get-E, delete the source file-a use ascii mode-O to specify the directory in which the output file is stored, instance * *

1) get the file and specify the name of the storage

[root@localhost weijie] # lftp 192.168.1.8 / / Log in to the ftp server lftp 192.168.1.8 Aug ~ > ls drwxr-xr-x 2000 Aug 14 06:38 pub lftp 192.168.1.8 / > cd pub/ switch directory lftp 192.168.1.8:/pub > ls / / View the file-rwxrwxrwx 2375494044 Aug 14 06:38 1.zip-rw-r--r-- 1000 Aug 14 03:38 test.c lftp 192.168.1.8:/pub > get test.c-o testtt.c / / get the file The storage name is testtt.c lftp 192.168.1.8:/pub > quit / / exit [root@localhost weijie] # ls / / to view the content, and the file has been obtained. The file is stored in the current directory 1 11.c 1.zip 2.c.bz2 4.c 6.c ~ rec000012.c.bz2 testtt.c 1. 1.c 2.c 3.c 5.c col res.zip2) to get the file and specify the storage location

[root@localhost weijie] # lftp 192.168.1.8 / / Log in to the server lftp 192.168.1.8 cd pub/ ~ > cd pub/ switch directory lftp 192.168.1.8:/pub > get-O / test.c / / get the file Specify the storage location to the root directory lftp 192.168.1.8:/pub > quit / / exit [root@localhost weijie] # ls / View the change directory This is the end of the document bak dev lib misc opt sbin sys usr wj bin etc lost+found mnt proc selinux test.c var boot home media net root srv tmp weijie "how to use get to get ftp files in Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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

Development

Wechat

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

12
Report