Which common FTP client command transmits a direct, byte-for-byte copy of a file?
The FTP protocol supports two modes of file transfer: ASCII mode and binary mode. In ASCII mode, files are transferred as text, which means that special characters may be converted during the transfer. In binary mode, files are transferred byte-for-byte, which makes it the preferred mode for transferring non-text files such as images, videos, and binary executables.
The correct answer to this question is B. binary. The FTP client command "binary" instructs the server to transfer files in binary mode, ensuring that the files are copied byte-for-byte without any conversion or modification. This command is commonly used when transferring non-text files, or when the integrity of the file is critical.
To explain the other options:
A. ascii: The FTP client command "ascii" instructs the server to transfer files in ASCII mode. This mode is appropriate for text files, but not for non-text files.
C. hash: The FTP client command "hash" instructs the server to send a hash mark (#) for every block of data that is transferred. This can be useful for monitoring the progress of a file transfer.
D. quote: The FTP client command "quote" is used to send arbitrary commands to the FTP server. This can be useful for executing commands that are not supported by the FTP client.
E. glob: The FTP client command "glob" instructs the server to perform file name globbing, which allows for the transfer of multiple files at once using wildcards. This command is not related to file transfer mode.