Changes for page Lftp transfert de fichiers pour Unix
Last modified by Mélodie on 2026/04/01 13:56
Summary
Details
- Page properties
-
- Syntax
-
... ... @@ -1,1 +1,1 @@ 1 - XWiki2.11 +CommonMark Markdown 1.2 - Content
-
... ... @@ -21,9 +21,9 @@ 21 21 22 22 ## FTP 23 23 24 -* `lftp <ftp://login@ip>` # connection to the server root 25 -* `lftp <ftp://login@ip:/target-directory>` # direct connection to destination directory 26 -* `lftp <ftp://login@ip/target-directory>` # same without the ':' sign 24 +* `lftp <ftp://login@ip>` # connection to the server root 25 +* `lftp <ftp://login@ip:/target-directory>` # direct connection to destination directory 26 +* `lftp <ftp://login@ip/target-directory>` # same without the ':' sign 27 27 28 28 The password is requested interactively after connection. 29 29 ... ... @@ -33,33 +33,33 @@ 33 33 34 34 ## Navigation and information commands 35 35 36 -* `pwd` # displays the current directory (remote) 37 -* `lpwd` # displays the current directory (local) 38 -* `ls` # lists remote files 39 -* `lcd` # displays the current local directory while trying to change the local directory 40 -* `!ls` # lists local files (! = local execution) 41 -* `cd directory` # changes remote directory 42 -* `lcd directory` # changes local directory 36 +* `pwd` # displays the current directory (remote) 37 +* `lpwd` # displays the current directory (local) 38 +* `ls` # lists remote files 39 +* `lcd` # displays the current local directory while trying to change the local directory 40 +* `!ls` # lists local files (! = local execution) 41 +* `cd directory` # changes remote directory 42 +* `lcd directory` # changes local directory 43 43 44 44 ## File transfers 45 45 46 -* `get <file>` # downloads the chosen remote file to the current local directory 47 -* `get <file> -o /local/path/` # downloads the chosen remote file to a specific local directory 48 -* `put <file>` # sends the chosen local file to the current remote directory 49 -* `mget <file1 file2 file3…>` # downloads several chosen files to the current local directory 50 -* `mput <file1 file2 file3…>` # sends several chosen files to the current remote directory 46 +* `get <file>` # downloads the chosen remote file to the current local directory 47 +* `get <file> -o /local/path/` # downloads the chosen remote file to a specific local directory 48 +* `put <file>` # sends the chosen local file to the current remote directory 49 +* `mget <file1 file2 file3…>` # downloads several chosen files to the current local directory 50 +* `mput <file1 file2 file3…>` # sends several chosen files to the current remote directory 51 51 52 52 ## Complete directory transfers 53 53 54 54 Connected to the server: 55 55 56 -* `lftp login@server:/directory> mirror <remote-folder> <local-folder/>` # downloads a complete directory to the current local directory 57 -* `lftp login@server:/directory> mirror --reverse <local-folder/> <remote-folder>` # sends the content of a complete local directory to the remote server 58 -* `lftp login@server:/directory> mirror --reverse <local-folder> <remote-folder>` # sends a complete local directory to the remote server 56 +* `lftp login@server:/directory> mirror <remote-folder> <local-folder/>` # downloads a complete directory to the current local directory 57 +* `lftp login@server:/directory> mirror --reverse <local-folder/> <remote-folder>` # sends the content of a complete local directory to the remote server 58 +* `lftp login@server:/directory> mirror --reverse <local-folder> <remote-folder>` # sends a complete local directory to the remote server 59 59 60 -* `mirror --continue` # resumes an interrupted transfer 61 -* `mirror --delete` # deletes at the destination what no longer exists at the source 62 -* `mirror --parallel=4` # parallel transfers 60 +* `mirror --continue` # resumes an interrupted transfer 61 +* `mirror --delete` # deletes at the destination what no longer exists at the source 62 +* `mirror --parallel=4` # parallel transfers 63 63 64 64 ### Parallel transfers 65 65 ... ... @@ -79,10 +79,10 @@ 79 79 80 80 ## Miscellaneous 81 81 82 -* `jobs` # displays current transfers 83 -* `wait` # waits for current transfers to finish 84 -* `queue` # puts commands in a queue 85 -* `exit / quit` # exits lftp 82 +* `jobs` # displays current transfers 83 +* `wait` # waits for current transfers to finish 84 +* `queue` # puts commands in a queue 85 +* `exit / quit` # exits lftp 86 86 87 87 ### Miscellaneous — practical use 88 88 ... ... @@ -200,5 +200,5 @@ 200 200 201 201 Furthermore _exit kill_ forces all jobs to stop before quitting. 202 202 203 -** Toverify**: _bye_ could be an alias of _exit_ or _quit_ inherited from FTP tradition (FTP servers often reply _bye_ upon disconnection), but the man page does not mention it.203 +**Needs verification**: _bye_ could be an alias of _exit_ or _quit_ inherited from FTP tradition (FTP servers often reply _bye_ upon disconnection), but the man page does not mention it. 204 204