> For the complete documentation index, see [llms.txt](https://docs.wehost.co.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wehost.co.in/cybersecurity/basic-bash.md).

# Basic Bash

## SET TERM

```bash
export TERM=xterm
```

```bash
python3 -c 'import pty; pty.spawn("/bin/bash")'
export TERM=xterm
```

## Local Python Server

```bash
python3 -m http.server <PORT NUMBER> #python3 -m http.server 80
```

## NETCAT

### Netcat Listener

```bash
nc -lvp <PORT NUMBER> #nc -lvp 8080
```
