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

The usage of the Linux basic command put

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

Share

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

This article introduces the relevant knowledge of "the usage of the Linux basic command put". Many people will encounter such a dilemma in the operation of actual cases, 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!

Put

After logging in to the ftp server using lftp, you can upload the file to the server using the put directive.

1. Grammar

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

2. List of options

Option

Description

-o

Specify the name of the output file. If not specified, the original name will be used.

-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

Upload 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 > put 3.c / / upload files

65 bytes transferred

Lftp 192.168.1.8:/pub > ls / / View the content, which has been uploaded successfully

-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

-rw- 1 14 50 65 Oct 02 01:48 3.c

Drwxr-xr-x 2 0 0 4096 Oct 02 01:12 testftp

Lftp 192.168.1.8:/pub >

This is the end of the introduction to "the usage of the Linux basic command put". 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

Servers

Wechat

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

12
Report