Get the App
SLTechnology News&Howtos  ›  Servers  › 

What are the commands related to FTP connection transmission under CentOS?

Shulou Source: shulou.com Published: 2022-06-01 18:40:50 11月14日 Update

The purpose of this article is to share with you the contents of the commands related to FTP connection transmission under CentOS. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

% ftp hostname / IP / * Log in to the ftp server and will be prompted for a user name and password * /

Anonymous login: user name input: anonymous password input: an arbitrary string in mailbox format

FTP > ascii: set to transfer files in ASCII mode (default)

FTP > bell: alarm prompt every time a file transfer is completed.

FTP > binary: set the file to be transferred in binary mode.

FTP > bye: terminates the host FTP process and exits FTP management.

FTP > case: when ON, the file names copied with the MGET command are converted to lowercase letters on the local machine.

FTP > cd: the same CD command as UNIX.

FTP > cdup: return to the previous directory.

FTP > chmod: change the file permissions of the remote host.

FTP > close: terminates the remote FTP process, returns 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] lists the files in the current remote host directory. If there is a local file, write the result to the local file.

FTP > get [remote-file] [local-file] is transferred from the remote host to the local host.

FTP > help [command] output an explanation of the command.

FTP > lcd: change the working directory of the current local host, if default, change to the current user's HOME directory.

FTP > ls [remote-directory] [local-file] as DIR.

FTP > macdef: define macro commands.

FTP > mdelete [remote-files] deletes a batch of files.

FTP > mget [remote-files] receives a batch of files from the remote host to the local host.

FTP > mkdir directory-name establishes a directory in 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] transfers a local file to the remote host.

FTP > pwd: lists the current remote host directory.

FTP > quit: same as BYE.

FTP > recv remote-file [local-file] as GET.

FTP > rename [from] [to] change the file name in the remote host.

FTP > rmdir directory-name deletes the directory in the remote host.

FTP > send local-file [remote-file] as PUT.

FTP > status: displays the status of the current FTP.

FTP > system: displays the remote host system type.

FTP > user user-name [password] [account] log in to the remote host again with a different user name.

FTP >? [command]: same as HELP. [command] specifies the name of the command that needs help. If no command,ftp is specified, a list of all commands is displayed.

FTP >! Exit from the ftp subsystem to the shell.

Thank you for reading! This is the end of this article on "what are the commands related to FTP connection transmission under CentOS?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Tags: Host file command directory user method user name prompt login input transfer content password file name more status article process help good Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MariaDB Redmi Xiaomi Linux