Introduction to mput Grammar under Linux
This article mainly explains "introduction to mput Grammar under Linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "introduction to mput Grammar under Linux".
Mput
After logging in to the ftp server using lftp, you can upload the file to the server using the put directive. Mput instructions can use wildcards, while put instructions cannot.
1. Grammar
Mput [- c] [- d] [- a] [- E] [- O base] files
2. List of options
Option
Description
-d
Wear a directory with the same name as the file and store the file
-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 the working directory
Lftp 192.168.1.8:/pub > mput * .c / / upload all c files
Mput: Access failed: 553 Could not create file. (3.c)
155 bytes transferred
Transfer of 1 of 4 files failed
Lftp 192.168.1.8:/pub > ls / / View the content to upload successfully
-rwxrwxrwx 1 0 2375494044 Aug 14 06:38 1.zip
-rw- 1 14 500 Oct 02 01:52 11.c
-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
-rw- 1 14 50 52 Oct 02 01:52 4.c
-rw- 1 14 50 38 Oct 02 01:52 5.c
Drwxr-xr-x 2 0 0 4096 Oct 02 01:12 testftp
At this point, I believe you have a deeper understanding of "introduction to mput Grammar under Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!