GFTP command Daquan

  
                  

This article shows you the commands commonly used in the ftp tool gftp.

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

FTP> ? Display ftp command description. ? Same as help. Format: ? [command] Description: [command] specifies the name of the command that needs help. If no command is specified, ftp will display a list of all commands.

FTP> append Appends a local file to a file on a remote computer using the current file type setting. Format: append local-file [remote-file] Description: local-file specifies the local file to be added. Remote-file Specifies the file on the remote computer where you want to add local-file. If remote-file is omitted, the local file name will be used as the remote file name.

FTP> ascii Sets the file transfer type to the default ASCII. Description: FTP supports two file transfer types, ASCII and binary images. ASCII should be used when transferring text files.

FTP> bell Switches the ring to ring after each file transfer command is completed. By default, the ringtone is turned off.

FTP> binary (or bi) sets the file transfer type to binary.

FTP> bye (or by) ends the FTP session with the remote computer and exits ftp.

FTP> cd Change the working directory on the remote computer. Format: cd remote-directory Description: remote-directory Specifies the directory on the remote machine to be changed.

FTP> close Ends an FTP session with the remote server and returns a command interpreter.

FTP> debug switch debugging. When debugging is turned on, each command sent to the remote computer is printed, preceded by the string “>”. By default, debugging is turned off.

FTP> delete Delete files on remote computers. Format: delete remote-file Description: remote-file specifies the file to be deleted.

FTP> dir Displays a list of remote directory files and subdirectories. Format: dir [remote-directory] [local-file] Description: remote-directory Specifies the directory whose list you want to view. If no directory is specified, the current working directory on the remote computer will be used. Local-file specifies the local file where the list is to be stored. If not specified, the output will be displayed on the screen.

FTP> disconnect From the remote computer, keep the ftp prompt.

FTP> get Use the current file conversion type to copy remote files to your local computer. Format: get remote-file [local-file] Description: remote-file specifies the remote file to be copied. Local-file Specifies the name to use on the local machine. If not specified, the file will be named remote-file.

FTP >glob Switch file name combination. Combinations allow wildcards (* and ?) to be used in internal files or pathnames. By default, the combination is turned on.

FTP >hash Switches the digital signature (#) of each data block that has been transferred. The size of the data block is 2048 bytes. By default, hash symbol printing is turned off. FTP >help displays the ftp command description. Format: help [command] Description: command specifies the name of the command that requires instructions. If no command is specified, ftp will display a list of all commands.

FTP >lcd Changes the working directory on the local machine. By default, the working directory is the directory where ftp is started. Format: lcd [directory] Description: directory specifies the directory on the local machine to be changed. If no directory is specified, the current working directory on the local machine will be displayed.

FTP >literal Sends parameters verbatim to a remote FTP server. A single FTP reply code will be returned. Format: literal argument [ ...] Description: argument specifies the parameters to be sent to the FTP server.

FTP >ls Displays a list of abbreviations for remote directory files and subdirectories. Format: ls [remote-directory] [local-file] Description: remote-directory Specifies the directory whose list you want to view. If no directory is specified, the current working directory on the remote computer will be used. Local-file Specifies the local file where the list is to be stored. If not specified, the output will be displayed on the screen.

FTP >mdelete Delete files on remote computers. Format: mdelete remote-files [ ...] Description: remote-files Specifies the remote file to delete.

FTP >mdir Displays a list of remote directory files and subdirectories. You can use mdir to specify multiple files. Format: mdir remote-files [ ...] local-file Description: remote-files Specifies the directory to view the list. You must specify remote-files. Please type - use the current working directory on the remote computer. Local-file Specifies the local file to restore the list. Please type - display the list on the screen.

FTP >mget copies remote files to the local machine using the current file transfer type. Format: mget remote-files [ ...] Description: remote-files Specifies the remote file to be copied to the local machine.

FTP >mkdir Create a remote directory. Format: mkdir directory Description: directory Specifies the name of the new remote directory. FTP >mls displays a list of abbreviations for remote directory files and subdirectories.

Format: mls remote-files [ ...] local-file Description: remote-files Specifies the files 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 where the list is to be stored. Please type - to display the list on the screen.

FTP >mput copies local files to a remote computer using the current file transfer type. Format: mput local-files [ ...] Description: local-files Specifies the local file to be copied to the remote computer FTP >open to connect to the specified FTP server. Format: open computer [port] Description: computer specifies the remote computer to connect to. The computer can be specified by IP address or computer name (DNS or host files must be available). If automatic login is turned on (default), ftp will also attempt to automatically log the user into the FTP server port to specify the port number used to contact the FTP server.

FTP >prompt Switch prompts. If mget and mput transfer all files when the prompt is closed, Ftp will prompt you to selectively retrieve or store the file during multi-file transfer. By default, the prompt is open.

FTP >put Use the current file transfer type to copy local files to a remote computer. Format: put local-file [remote-file] Description: local-file specifies the local file to be copied. Remote-file Specifies the name to use on the remote computer. If not specified, the file will be named local-file.

FTP >pwd displays the current directory on the remote computer.

FTP >quit End an FTP session with a remote computer and exit ftp.

FTP >quote Send parameters to the remote FTP server verbatim. A single FTP reply code will be returned. Quote is the same as literal. Format: quote argument [ ...] Description: argument specifies the parameters to be sent to the FTP server.

FTP >recv Use the current file transfer type to copy remote files to your local computer. Recv is the same as get. Format: recv remote-file [local-file] Description: remote-file specifies the remote file to be copied. Local-file Specifies the name to use on the local machine. If not specified, the file will be named remote-file.

FTP >remotehelp Displays remote command help. Format: remotehelp [command] Description: command specifies the name of the command that needs help. If no command is specified, ftp will display a list of all remote commands.

FTP >rename Renames a remote file. Format: rename filename newfilename Description: filename Specifies the file to be renamed. Newfilename specifies a new file name.

FTP >rmdir Delete remote directories. Format: rmdir directory Description: directory Specifies the name of the remote directory to be deleted.

FTP >send Use the current file transfer type to copy local files to a remote computer. Send is the same as put. Format: send local-file [remote-file] Description: local-file specifies the local file to be copied. Remote-file Specifies the name to use on the remote computer. If not specified, the file will be named local-file.

FTP >status shows the current status of FTP connections and switches.

FTP >trace Switch packet tracking. Trace displays the route of each packet when running the ftp command.

FTP >type Sets or displays the file transfer type. Format: type [type-name] Description: type-name specifies the file transfer type. The default setting is ascii. If no type-name is specified, the current type will be displayed.

FTP >user Specifies the user of the remote computer. Format: user username [password] [account] Description: user-name Specifies the username used to log in to the remote computer. Password Specifies the password for the user-name. If not specified, but must be specified, ftp will prompt for a password. Account Specifies the account used to log in to the remote computer. If no account is specified, but needs to be specified, ftp will prompt you to enter an account.

FTP >verbose Switch verbose mode. If turned on, all ftp responses will be displayed. After the file transfer is completed, statistics related to the transfer efficiency are also displayed. By default, verbose is turned on.

Copyright © Windows knowledge All Rights Reserved