# TCP 21: FTP

> The File Transfer Protocol is a standard network protocol used for the transfer of computer files between a client and server on a computer network. FTP is built on a client-server model architecture using separate control and data connections between the client and the server.
>
> \-- [*Wikipedia*](https://en.wikipedia.org/wiki/File_Transfer_Protocol)

## Commands

Connect

```bash
ftp <ip>
```

Show all files

```bash
dir -a
```

Use binary mode for file transfers

```bash
binary
```

Download file

```bash
get <file>
```

Upload file

```bash
put <localfile>
```
