Ftp

From Cheatsheet

Jump to: navigation, search

FTP

   *  ftp> open ftp.your_isp.com
         o Connected to ftp.your_isp.com
           220 ftp.your_isp.com (information about the server) ready 
   * Name: (enter your user name)
   * Password: (enter your password)
         o 230-
           230- Welcome to Your ISP
           The local time is Thursday, 01-Feb-2007 16:51:58 MST
           You are number 1 of a possible 100 connections
           All access is logged.
           230-
           230 User (your user name) logged in.
           Remote system type is UNIX.
           Using binary mode to transfer files. 
   * ftp> ls
         o 200 PORT command successful.
           150 Opening ASCII mode data connection for /bin/ls.
           total 27
           followed by a listing of the contents of the current directory, usually consisting of:
               + File permissions
               + Number of files (1 for a file, 1 or more for a directory)
               + Owner name (should be your login name)
               + Group name (frequently "user")
               + Last-modified date
               + File name 
           226 Transfer complete. 

LFTP

  • give you a progress bar for uploading large files
 $ lftp
 lftp :~> open -u username,password URL
 lftp username@URL:~> mput *.log
 lftp username@URL:~> bye

(if you want to make a script to upload *.log, run $ lftp -f ftp_script)

Personal tools