Linux/FTP

From Omnia
Jump to: navigation, search

Connect:

ftp [host]

Specifying username/password in a URL: [1]

ftp://username:password@hostname/

Common commands:

dir
ls
cd [dir]
del [file]
rmdir [dir]
mkdir [dir]

Binary / Binary mode:

bin
ascii

Run local command:

![command]
! dir

Passive / Active mode:

passive
active

Hash progress:

hash

Multiple put:

mput [files...]
mput *

Toggle mput prompting:

prompt
ftp -i [server]  # disable prompting on startup


Linux FTP

.netrc

.netrc:

machine [some.server.com] login [myuser] password [mypassword]
machine [some.server.com] login anonymous password [myemail]

Help:

man .netrc
man ftp

keywords