curl:upload_a_file_with_ftp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
curl:upload_a_file_with_ftp [2019/11/27 00:16] – removed peter | curl:upload_a_file_with_ftp [2020/09/25 13:12] (current) – created 192.168.1.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Curl - Upload a file with FTP ====== | ||
+ | |||
+ | <code bash> | ||
+ | curl -T uploadfilename -u username: | ||
+ | </ | ||
+ | |||
+ | * 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: | ||
+ | </ | ||
curl/upload_a_file_with_ftp.1574813808.txt.gz · Last modified: 2020/07/15 09:30 (external edit)