Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

UNIX FTP command

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Example:

# download files

Cd $LOCAL_PATH

Ftp-I-n $FTP_IP $FTP_PORT

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report