docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
---
|
2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-11-28 07:50:25 +08:00
|
|
|
Long: quote
|
2021-07-13 11:09:26 +08:00
|
|
|
Arg: <command>
|
2016-12-17 05:01:01 +08:00
|
|
|
Short: Q
|
2016-11-28 07:50:25 +08:00
|
|
|
Help: Send command(s) to server before transfer
|
|
|
|
Protocols: FTP SFTP
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: ftp sftp
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 5.3
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: append
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
See-also:
|
|
|
|
- request
|
|
|
|
Example:
|
|
|
|
- --quote "DELE file" ftp://example.com/foo
|
2016-11-28 07:50:25 +08:00
|
|
|
---
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
|
|
|
|
# `--quote`
|
|
|
|
|
2016-11-28 07:50:25 +08:00
|
|
|
Send an arbitrary command to the remote FTP or SFTP server. Quote commands are
|
2023-08-01 20:11:50 +08:00
|
|
|
sent BEFORE the transfer takes place (just after the initial **PWD** command
|
|
|
|
in an FTP transfer, to be exact). To make commands take place after a
|
|
|
|
successful transfer, prefix them with a dash '-'.
|
2022-03-30 00:11:03 +08:00
|
|
|
|
|
|
|
(FTP only) To make commands be sent after curl has changed the working
|
|
|
|
directory, just before the file transfer command(s), prefix the command with a
|
|
|
|
'+'. This is not performed when a directory listing is performed.
|
|
|
|
|
|
|
|
You may specify any number of commands.
|
2016-11-28 07:50:25 +08:00
|
|
|
|
2023-09-08 20:32:29 +08:00
|
|
|
By default curl stops at first failure. To make curl continue even if the
|
2021-07-26 14:54:13 +08:00
|
|
|
command fails, prefix the command with an asterisk (*). Otherwise, if the
|
2023-09-08 20:32:29 +08:00
|
|
|
server returns failure for one of the commands, the entire operation is
|
2021-07-26 14:54:13 +08:00
|
|
|
aborted.
|
2016-11-28 07:50:25 +08:00
|
|
|
|
2021-07-26 14:54:13 +08:00
|
|
|
You must send syntactically correct FTP commands as RFC 959 defines to FTP
|
|
|
|
servers, or one of the commands listed below to SFTP servers.
|
2019-06-13 04:36:47 +08:00
|
|
|
|
2016-11-28 07:50:25 +08:00
|
|
|
SFTP is a binary protocol. Unlike for FTP, curl interprets SFTP quote commands
|
2024-02-27 17:35:28 +08:00
|
|
|
itself before sending them to the server. Filenames may be quoted shell-style
|
|
|
|
to embed spaces or special characters. Following is the list of all supported
|
|
|
|
SFTP quote commands:
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## atime date file
|
2020-08-14 07:38:49 +08:00
|
|
|
The atime command sets the last access time of the file named by the file
|
2024-02-07 01:07:07 +08:00
|
|
|
operand. The date expression can be all sorts of date strings, see the
|
2021-03-22 23:50:57 +08:00
|
|
|
*curl_getdate(3)* man page for date expression details. (Added in 7.73.0)
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## chgrp group file
|
2016-11-28 07:50:25 +08:00
|
|
|
The chgrp command sets the group ID of the file named by the file operand to
|
|
|
|
the group ID specified by the group operand. The group operand is a decimal
|
|
|
|
integer group ID.
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## chmod mode file
|
2016-11-28 07:50:25 +08:00
|
|
|
The chmod command modifies the file mode bits of the specified file. The
|
|
|
|
mode operand is an octal integer mode number.
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## chown user file
|
2016-11-28 07:50:25 +08:00
|
|
|
The chown command sets the owner of the file named by the file operand to the
|
|
|
|
user ID specified by the user operand. The user operand is a decimal
|
|
|
|
integer user ID.
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## ln source_file target_file
|
2016-11-28 07:50:25 +08:00
|
|
|
The ln and symlink commands create a symbolic link at the target_file location
|
|
|
|
pointing to the source_file location.
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## mkdir directory_name
|
2016-11-28 07:50:25 +08:00
|
|
|
The mkdir command creates the directory named by the directory_name operand.
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## mtime date file
|
2020-08-14 07:38:49 +08:00
|
|
|
The mtime command sets the last modification time of the file named by the
|
2024-02-07 01:07:07 +08:00
|
|
|
file operand. The date expression can be all sorts of date strings, see the
|
2021-03-22 23:50:57 +08:00
|
|
|
*curl_getdate(3)* man page for date expression details. (Added in 7.73.0)
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## pwd
|
2023-08-01 20:11:50 +08:00
|
|
|
The pwd command returns the absolute path name of the current working directory.
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## rename source target
|
2016-11-28 07:50:25 +08:00
|
|
|
The rename command renames the file or directory named by the source
|
|
|
|
operand to the destination path named by the target operand.
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## rm file
|
2016-11-28 07:50:25 +08:00
|
|
|
The rm command removes the file specified by the file operand.
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## rmdir directory
|
2016-11-28 07:50:25 +08:00
|
|
|
The rmdir command removes the directory entry specified by the directory
|
|
|
|
operand, provided it is empty.
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## symlink source_file target_file
|
2016-11-28 07:50:25 +08:00
|
|
|
See ln.
|