Difference between revisions of "FTP via cli/terminal"
(→Windows command prompt) |
|||
| Line 1: | Line 1: | ||
| − | This section contains text as it appears in | + | This section contains text as it appears in command prompt, and we will highlight that text |
<code> like this </code> | <code> like this </code> | ||
| Line 5: | Line 5: | ||
When we want to show you a command that you have to type and enter, we'll indicate that with the dollar sign "$" and it will be shown like this: | When we want to show you a command that you have to type and enter, we'll indicate that with the dollar sign "$" and it will be shown like this: | ||
| − | <code> | + | <code> > Hello </code> |
This means "type the word 'hello' and press '''enter'''". | This means "type the word 'hello' and press '''enter'''". | ||
| Line 13: | Line 13: | ||
For example, to indicate that you should type your user name and press '''enter''': | For example, to indicate that you should type your user name and press '''enter''': | ||
| − | <code> $ [your user name] </code> | + | <code> $> [your user name] </code> |
If you're comfortable working in the Linux terminal, or on Windows, command prompt or PowerShell, you can upload files to our hosting servers via FTP without having to install a separate client application, and without having to use the control panel web interface. | If you're comfortable working in the Linux terminal, or on Windows, command prompt or PowerShell, you can upload files to our hosting servers via FTP without having to install a separate client application, and without having to use the control panel web interface. | ||
| Line 23: | Line 23: | ||
In the command prompt, navigate to the folder where your website files are located. For example, if your files are in a folder called "My website" in "My Documents": | In the command prompt, navigate to the folder where your website files are located. For example, if your files are in a folder called "My website" in "My Documents": | ||
| − | <code> | + | <code> > cd "C:\Documents and Settings\[Your Windows User Name]\My Documents\My website" </code> |
Enter the command "FTP" and the command prompt will change to "ftp>": | Enter the command "FTP" and the command prompt will change to "ftp>": | ||
<code> | <code> | ||
| − | + | > FTP | |
ftp> | ftp> | ||
| Line 41: | Line 41: | ||
When you are logged in, navigate to the "httpdocs" folder: | When you are logged in, navigate to the "httpdocs" folder: | ||
| − | <code> | + | <code> > cd httpdocs</code> |
Revision as of 16:14, 13 February 2023
This section contains text as it appears in command prompt, and we will highlight that text
like this
When we want to show you a command that you have to type and enter, we'll indicate that with the dollar sign "$" and it will be shown like this:
> Hello
This means "type the word 'hello' and press enter".
If we want to illustrate some text that you will have to replace, we will put that text [in square brackets like this].
For example, to indicate that you should type your user name and press enter:
$> [your user name]
If you're comfortable working in the Linux terminal, or on Windows, command prompt or PowerShell, you can upload files to our hosting servers via FTP without having to install a separate client application, and without having to use the control panel web interface.
Windows command prompt
Open command prompt (Windows key + R to open the "Run" dialog. Enter cmd and press Enter).
In the command prompt, navigate to the folder where your website files are located. For example, if your files are in a folder called "My website" in "My Documents":
> cd "C:\Documents and Settings\[Your Windows User Name]\My Documents\My website"
Enter the command "FTP" and the command prompt will change to "ftp>":
> FTP
ftp>
enter "open" followed by your domain name:
$ open [domain.co.za]
Enter your ftp user name and password when prompted.
When you are logged in, navigate to the "httpdocs" folder:
> cd httpdocs