In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use Linux ftp command", the explanation content in the article is simple and clear, easy to learn and understand, please follow the idea of Xiaobian slowly in-depth, together to study and learn "how to use Linux ftp command"!
ftp is used to set file system related functions
The function of Linux ftp command is to control file transfer between local machine and remote machine by command. Here are some frequently used commands of Linux ftp command. I believe it will be very easy to master these ftp operations using Linux.
syntax ftp(option)(parameter) option-d: show command execution in detail for debugging or analyzing program execution; -i: turn off interactive mode without asking any questions; -g: turn off extension of local host file names to support special characters; -n: do not use automatic login; -v: show command execution. Parameter Host: Specifies the hostname or ip address of the FTP server to connect to.
ftp> ascii #Set file transfer to ASCII (default) ftp> bell #Alarm prompt every time file transfer is completed. ftp> binary #Sets files to be transferred in binary mode. ftp> bye #Terminate host FTP process and exit FTP administration mode. ftp> case #When ON, copy the file name to the local machine with MGET command, all converted to lowercase letters. ftp> cd #Same as UNIX CD command. ftp> cdup #Return to the previous directory. ftp> chmod #Change file permissions on remote hosts. ftp> close #Terminates the remote FTP process, returns to FTP command status, and removes all macro definitions. ftp> delete #Delete files from remote hosts. ftp> dir [remote-directory] [local-file] #Lists files in the directory of the current remote host. If there is a local file, write the result to the local file. ftp> get [remote-file] [local-file] #Transfer from remote host to local host. ftp> help [command] #Output an explanation of the command. ftp> lcd #Change the current localhost working directory, if default, go to the current user's HOME directory. 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 remote host to local host. ftp> mkdir directory-name #Create directory on remote host. ftp> mput local-files #Transfer a batch of files from the local host to the remote host. ftp> open host [port] #Reestablish a new connection. ftp> prompt #Interactive prompt mode. ftp> put local-file [remote-file] #Transfer a local file to a remote host. ftp> pwd #Lists the current remote host directory. ftp> quit #Same as BYE. ftp> recv remote-file [local-file] #Same as GET. ftp> rename [from] [to] #Change file names on remote hosts. ftp> rmdir directory-name #Delete directories from remote hosts. ftp> send local-file [remote-file] #Same as PUT. ftp> status #Displays the current FTP status. ftp> system #Show remote host system type. ftp> user user-name [password] [account] #Log in to the remote host again as a different user name. ftp> ? [command] #Same as HELP. [command] Specifies the name of the command that needs help. If command is not specified, ftp displays a list of all commands. ftp> ! #Exit from ftp subsystem to shell. FTP Anonymous Login Account Password
Account: anonymous Password: anonymous@ Close FTP connection
bye exit quit download file
ftp> get readme.txt #Download readme.txt file ftp> mget *.txt #Download Upload File
ftp> put/path/readme.txt #Upload readme.txt file ftp> mput *.txt #You can upload multiple files Thank you for reading, the above is the "Linux ftp command how to use" content, after learning this article, I believe we have a deeper understanding of how to use the Linux ftp command, the specific use of the situation also needs to be verified. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.