Connect to the server with Windows FTP utility

On Windows, you can easily use a GUI software like FileZilla to connect to your FTP server. In this article, we will show how to connect via the FTP utility from the Command Prompt/PowerShell.

In case of cPanel, you can use the same credentials for the main FTP account as for the cPanel account.

To connect to the FTP server with the ftp tool:

1. Open Command Prompt or Windows PowerShell

2. Type ftp <hostname> or ftp <IP>
hostname is the server’s domain, like or your domain name

3. When asked, enter the username and the password for your account. The window will look like:

Connected to
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 3 of 20 allowed.
220-Local time is now 09:45. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 10 minutes of inactivity.
200 OK, UTF-8 enabled
User ( domainname
331 User domainname OK. Password required
230 OK. Current restricted directory is /
ftp> quit
221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
221 Logout.

Most used ftp commands are:
1. cd – to change the current directory

ftp> cd public_html
250 OK. Current directory is /public_html

2. dir – list the files and folders in the current directory

ftp> dir
200 PORT command successful
150 Connecting to port 51666
drwxr-xr-x    6 paul3      paul3            4096 Nov 26  2007 .
drwxr-x---   14 paul3      99               4096 Jan 26 16:53 ..
drwxr-xr-x    2 paul3      paul3            4096 Nov 26  2007 24
drwxr-xr-x    2 paul3      paul3            4096 Nov 26  2007 32
-rw-r--r--    1 paul3      paul3            1476 Jun 21  2007 plothost.gif
-rw-r--r--    1 paul3      paul3            6952 Jun 21  2007 cleansoft20.gif
-rw-r--r--    1 paul3      paul3            6946 Jun 21  2007 cleansoft3.gif
226-Options: -a -l
ftp: 1976 bytes received in 0.14Seconds 14.11Kbytes/sec.

3. get – copy/download a file from the FTP server to your computer

ftp> get plothost.gif
200 PORT command successful
150 Connecting to port 51684
226-File successfully transferred
226 0.002 seconds (measured here), 0.61 Mbytes per second
ftp: 1487 bytes received in 0.00Seconds 1487.00Kbytes/sec.

4. put – copy/upload a file from your computer to the FTP server

ftp> put plothostmp3.mp3
200 PORT command successful
150 Connecting to port 51691
226-File successfully transferred
226 1.547 seconds (measured here), 1.29 Mbytes per second
ftp: 2104051 bytes sent in 1.34Seconds 1572.53Kbytes/sec.

To end an FTP connection use bye or quit.

How to Use the FTP Utility

Download files from the command line in Windows

Probably you will not need too often to download files from the command line/PowerShell, but in case you need, we will show here how you can archive this task.

In Linux, we have two commands to download files – wget and curl. Windows OS has the curl command. The curl command came to Windows in 2008.

To get the file content from the command line/PowerShell use curl URL

<title>301 Moved Permanently</title>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="">here</a>.</p>


To save the file on the local disk use curl URL -o local_filename

C:\Users\Web>curl -o test_file.test
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2054k  100 2054k    0     0   342k      0  0:00:06  0:00:06 --:--:--  420k


The -o option will output the content to a file instead of the terminal.

-o, –output Write to file instead of stdout

curl –help

To see all curl options, use curl –help.

If you are using Windows PowerShell, you can also use the Invoke-WebRequest command.

The Invoke-WebRequest cmdlet sends HTTP and HTTPS requests to a web page or web service. It parses the response and returns collections of links, images, and other significant HTML elements.

Invoke-WebRequest Doc

PS C:\Users\Web> Invoke-WebRequest -o test_file.test
PS C:\Users\Web>

Related articles:
Download files in Linux


How to get Serial Number in Windows

There a few ways to get the serial number of a computer:

1. In the case of laptops, you will usually find the serial number on a back-label.

2. You can see it in BIOS (basic input/output system)

3. You can get it from Windows OS.

How to get the Serial Number in Windows:

1. Right-click on the Start button and click on the Windows PowerShell entry (or Command Prompt if you are using an older version of Windows).

Right-click StartMenu

The Windows PowerShell window will open:

Windows PowerShell

2. Here you can use two commands. The first one will work both on Command Prompt and on PowerShell:

wmic bios get serialnumber

C:\Users\PH>wmic bios get serialnumber


The second command will work only on PowerShell:

Get-WmiObject win32_bios | Format-List SerialNumber

PS C:\Users\PH> Get-WmiObject win32_bios | Format-List SerialNumber

SerialNumber : 9E195841H

PS C:\Users\PH>