Home >System Tutorial >LINUX >Commands for FTP connection and transfer using CentOS system
%ftp host name/IP /*Log in to the ftp server, you will be prompted to enter your username and password*/
Anonymous login: Username input: anonymous Password input: any string in an email format
FTP>ascii: Set to transfer files in ASCII mode (default value)
FTP>bell: Alarm prompt every time a file transfer is completed.
FTP>binary: Set to transfer files in binary mode.
FTP>bye: Terminate the host FTP process and exit the FTP management mode.
FTP>case: When ON, the file names copied using the MGET command are copied to the local machine and all are converted to lowercase letters.
FTP>cd: Same as UNIX CD command.
FTP>cdup: Return to the previous directory.
FTP>chmod: Change the file permissions of the remote host.
FTP>close: Terminate the remote FTP process, return to the FTP command state, and all macro definitions are deleted.
FTP>delete: Delete files in the remote host.
FTP>dir [remote-directory] [local-file] List the files in the current remote host directory. If there are local files, write the results to the local files.
FTP>get [remote-file] [local-file] Transfer from the remote host to the local host.
FTP>help [command] Output the explanation of the command.
FTP>lcd: Change the working directory of the current local host. If default, go to the HOME directory of the current user.
FTP>ls [remote-directory] [local-file] Same as DIR.
FTP>macdef: Define macro commands.
FTP>mdelete [remote-files] Delete a batch of files.
FTP>mget [remote-files] Receive a batch of files from the remote host to the local host.
FTP>mkdir directory-name Create a directory on the remote host.
FTP>mput local-files transfers a batch of files from the local host to the remote host.
FTP>open host [port] Re-establish a new connection.
FTP>prompt: interactive prompt mode.
FTP>put local-file [remote-file] Transfer a local file to the remote host.
FTP>pwd: List the current remote host directory.
FTP>quit: Same as BYE.
FTP>recv remote-file [local-file] Same as GET.
FTP>rename [from] [to] Change the file name in the remote host.
FTP>rmdir directory-name deletes the directory on the remote host.
FTP>send local-file [remote-file] Same as PUT.
FTP>status: Displays the current FTP status.
FTP>system: Display the remote host system type.
FTP>user user-name [password] [account] Log in to the remote host again with another username.
FTP>? [command]: Same as HELP. [command] specifies the name of the command that requires help. If command is not specified, ftp will display a list of all commands.
FTP>! Exit to the shell from the ftp subsystem.
The above is the detailed content of Commands for FTP connection and transfer using CentOS system. For more information, please follow other related articles on the PHP Chinese website!