
Command line FTP is a free utilty which is available on all PCs and Unix computers. Command line FTP can be used to transfer files between Windows PCs and Unix computers.
About FTP FTP Using Internet Explorer Command Line FTP Map Cent1 Drive in Windows
Introduction To Command Line FTP
Command line FTP is available on PCs and Unix (cent1). You can FTP between PCs and Unix, or Unix and remote Unix.
Command Line FTP Between PCs and Unix Command Line FTP Between Unix and Unix
PC to Unix Command Line FTP
- click on the 'Start' button then the 'Run' option.
- type: ftp cent1 then press Enter.
- type: (your username) then press Enter.
- type: (your password) then press Enter - see 'FTP>' prompt.
Using FTP Help System
To list available FTP commands:
- at 'FTP>' type: help then press Enter - see list of available commands.
To get more help on a FTP command:
- type: help (command) then press Enter
e.g. help pwd
e.g. help get
Preparation
You will need to check what files are on your PC and Unix folders and you may need to change to a new folder:
- type: lcd (local directory or disk)
e.g. lcd a:\ changes to your floppy disk.
e.g. lcd c:\temp changes to your temp folder. - type: pwd then press Enter - to check which Unix folder you are in.
- type: ls -l then press Enter - to view list of unix files.
- optionally type: cd (unix directory) then press Enter.
e.g. cd mail changes to your unix 'mail' folder. - use 'Windows Explorer' to list files on your PC directory!
- repeat the 'lcd, pwd, ls -l & cd' commands until you are satisfied that you are in the correct folders.
- type: bin then press Enter (to ensure all documents are transferred whole).
Transferring The Files
To transfer a file from your 'Unix to your PC':
- type: get (filename) then press Enter
e.g. get accounts.xls
To transfer a file from your 'PC to your Unix' account:
- type: put (filename) then press Enter
e.g. put assign.doc
Finishing Off
To finish a session and logout:
- type: bye then press Enter.
Command Line FTP Between Unix and Unix
Make a connection to your Unix account. The following is the most basic connection:
- click on the 'Start' button then the 'Run' option.
- type: telnet cent1 then press Enter
- type: (your username) then press Enter
- type: (your password) then press Enter - see '%' prompt.
Preparation
You will need to check what files are on your PC and Unix folders and you may need to change to a new folder:
- type: ls -l - for list of files in your Unix filestore.
- type: CD (folder name) e.g. cd graphics then press Enter.
- type: ls -l - see list of local files.
Optionally:
Connecting to the Remote FTP Server
To start FTP and connect to a remote FTP Server - 'ftp.mirror.ac.uk' is used as an example:
- type: ftp ftp.bris.ac.uk
- type: (your username on the site) or anonymous
- type: (your password) or (your email address)
- see the FTP> prompt.
Navigating
To list files on the remote system and change the remote directory:
- type: ls -l then press Enter.
- type: cd (directory) e.g. cd pub then press Enter.
- type: ls -l then press Enter.
Transferring The Files
To transfer a file from the remote site to your cent1 Unix account:
- type: get (filename) then press Enter.
e.g. get readme.txt
e.g. get accounts.xls
The files will land in your current cent1 directory.
To transfer a file from your cent1 account (current directory) to the remote FTP site:
- type: put (filename) then press Enter
e.g. put assign.doc
Logging Out
To finish a session and logout:
- type: bye then press Enter.
Using FTP Help System
To list available FTP commands:
- at the FTP> prompt type:help then press Enter - see list of available commands.
To get more help on a FTP command:
- type: help (command) then press Enter
e.g. help open
e.g. help get
©Lancaster University ISS Governance Computer User Agreement Privacy & Cookies Notice