User Tools

Site Tools


ubuntu:curl:upload_a_file_with_ftp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
ubuntu:curl:upload_a_file_with_ftp [2020/07/15 09:30] – external edit 127.0.0.1ubuntu:curl:upload_a_file_with_ftp [2020/09/25 13:11] (current) – removed 192.168.1.1
Line 1: Line 1:
-====== Ubuntu - Curl - Upload a file with FTP ====== 
- 
-<code bash> 
-curl -T uploadfilename -u username:password ftp://sitename.com/myfile 
-</code> 
- 
-  * The ‘**uploadfilename**’ file will be copied to the remote site and named ‘myfile’. 
-  * If the destination filename is eliminated the file will be copied with the original name. 
-  * By default the file will be copied to the root directory. 
- 
-To copy to some other directory specify the directory after the site name;e.g. 
- 
-<code bash> 
-curl -T uploadfilename -u username:password ftp://sitename.com/directory/myfile 
-</code> 
  
ubuntu/curl/upload_a_file_with_ftp.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki