-
Notifications
You must be signed in to change notification settings - Fork 1
FTP
Abbin44 edited this page Jun 22, 2021
·
3 revisions
Command usage
To start a connection to the server you need to enter the following parameters.
ftp ip true/false (username) (password)
The true/false is referring to if you want to connect with FTP or FTPS, False meaning FTP, and true meaning FTPS. You should only enter the username and password if you set the FTPS flag to true, otherwise leave it blank.
Now that you are connected there are several commands that are available to interact with the server.
-
ftp ls (path)
If no path is specified, it will list everything in the home directory of the user. ftp uploadFile [local path] [remote path]
ftp downloadFile [local path] [remote path]
ftp uploadDirectory [local path] [remote path]
ftp downloadDirectory [local path] [remote path]
ftp close
The server's connection will remain open until the user either manually terminates it with the close
command, or until the shell is closed. Therefore you can easily manipulate files locally, and keep the FTP connection open until it is needed.