directory on the remote computer to be changed.FTP> LCD changes the working directory on the local computer. By default, the working directory is the directory for starting ftp command parameters in linux.Format: LCD [directory]Note: directory specifies the directory on the local computer to be changed. If no directory is specified, the current working directory on the local computer is displayed.FTP> type configuration or display document transfer t
In front, we played HTTP, quite a bit of meaning, in this article, we continue to play FTP (File Transfer Protocol). Both HTTP and FTP are application-layer protocols built on TCP, no matter how they are packaged, how they are loaded bigger, and ultimately TCP end-to-end transmission. This paper is divided into two parts: first. Use Wireshark to capture the content of F
compressionText mode: CGI script and common HTML fileCurrently, the FTP client and the server can automatically identify the file type and select the corresponding transmission mode.6. FTP account typeAnonymous user: ftp or anonymousLocal User: Linux server's local system user accountVirtual User: account information is stored in an independent file or database.
remote-files [...] local-file
Description: remote-files specifies the directory to view the list. You must specify remote-files. Type-use the current working directory on the remote computer.
Local-file specifies the local file to restore the list. Type-display the list on the screen.
FTP> mget copies remote files to the local computer using the current file transfer type.
Format:
The server asks you the username and the password, separately enters later, will be authenticated passes. Note: Enter the password, the terminal does not display input, always a blank, so as long as you determine the correct input, press ENTER on the line.
2, download the file
The download file typically uses the Get and mget two commands, get for a single file, and mget multiple files.
a) Get
Format:
for SYSTEMPassword: passwordftp> cd /sys/asmftp> lsDATARECOVERYftp> cd DATAftp> lsdbsMFGftp> cd dbsftp> lst_dbl.ft_axl.fftp> binaryftp> get t_dbl.f, t_axl.fftp> put my_db2.f
InExample 28-1, after connecting to and logging onto Databasemyhost(First four lines), FTP MethodscdAndlsAre used to navigate and list folders, respectively. When in folder/sys/asm/DATA/dbs, FTP commandgetIs usedCopy filest_db1.fAndt_a
: displays all the response information of the remote server;
-N indicates that FTP automatic logon is disabled;
. N etrc file;
-D. Use the debugging method;
-G cancels the global file name.
The internal commands used by FTP are as follows (brackets indicate optional ):
1 .! [Cmd [ARGs]: Execute the interactive shell on the local machine and exit to return to the FTP
Local machine
ASCII settings file transfer mode is ASCII mode, by default, FTP in ASCII mode transfer files, users can also specify other modes, the ASCII and brinary command function is to set the mode of transmission, in ASCII mode transfer files to plain text is very good, However, in order to avoid the destruction of binary files, users can transfer files in binary mode.
Binary set file transfer mode to binary mode
Close terminates the current
Build FTP on LinuxImportant to solve how to build FTPResolve user-specified access to its root directoryResolving Access FTP timeout connectionsSolve the FTP active connection, passive connection problem1. Install FTP Close the firewall before installing FTP#service iptables
directory, you can find the file you just created Test.txt:
Ftp> CD Pub
Directory successfully changed.
ftp> ls
entering passive Mode (127,0,0,1,232,34) is here
comes the directory listing.
-rw-r--r--1 0 0 Dec 01:35 test.txt
Directory send OK.
Download Test.txt file:
Use the Apache FTP client to obtain the file list on the FTP Server FTP Response 421 resolved ed. Server closed connection
@ For ever 2009-12-09
Use the Apache FTP client (Java open-source package commons-net-2.0) to obtain the file list on the FTP server and write a rec
return) [Note: Enter \images directory] Ftp> mget *.jpg Under Windows FTP upload and download work completed, type bye interrupt connection. Ftp> Bye (carriage return) FTP download specified download directory under Windows Ftp>
.
Ftp> dir lists all the file names in the current directory of the remote workstation (slightly the same as the Unix LS-l command ).
Ftp> dir. | more is the same as above, but every page is paused (FTP other than Unix may not be applicable ).
Ftp> pwd: list the current directory location of the remote workstation.
directory listing.
-rw-r--r--1 0 0 Dec 01:35 test.txt
Directory send OK.
Download Test.txt file:
FTP "Mget test.txt
Mget test.txt? Y
Entering passive Mode (127,0,0,1,186,210)
Opening BINARY mode data connection for Test.txt (bytes).
The File send OK.
Bytes received in 0.0108 secs (1.9 kbytes/sec)
To view the contents of the native directory, you can se
the specified package.
Pkgadd add package
-D must exist. You can install the software pkgadd-d path package name from the CD and local directory, and enter the package name.
Of course, we also have a way to install from the warehouse. At this time, we can omit d, first put the package into the warehouse, the warehouse path is fixed, and then check the software information.
Pkgchk check if software installation is complete
The following shows the package for ls installation.
Pkgrm Delete So
specific command name after the help command to get a description of this command.The most commonly used commands are:FTP>ASCII: Set to transfer files in ASCII mode (default value)Ftp>bell: Every time a file transfer is completed, the alarm prompts.Ftp>binary: Sets the file to be transferred in binary mode.Ftp>bye: Terminates the host FTP process and exits the FTP
Linux on the Internet cannot be connected to ftp_connect of php through ftp commands. I tried three machines and can ping them. However, the system remains in the waiting state during the initial connection, not to mention logging on to the ftp server. However, the local windows Server can be connected through the ftp commands in the client or cmd... linux on the
Introduction to FTP
FTP is the abbreviation for the file Transfer Protocol (document Transfer Protocol), which is used to control the two-way transmission of files over the Internet.
The primary role of FTP is to have the user connect to a remote computer (which runs an FTP server program), view the
Public network of Linux through the FTP command and PHP ftp_connect can not connect, tried 3 machines, can ping, but in the initial connection when the time has been waiting, not to mention the landing FTP server.
However, the local Windows machine can be connected and logged on via the FTP command under the client or CMD.
FT
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.