# Useful commands on Linux 🐧
The following page contains just random useful Linux cli commands I often use and want to keep somewhere to copy and paste. Mostly useful to myself.
## Systemd resolvd debugging
Show configuration including used resolvers
```bash
resolvectl status
```
Flush local DNS caches
```bash
resolvectl flush-caches
```
## Connections and ports with ss
List all listening UDP oder TCP sockets including the PID
```bash
ss -tulpe
```
List all TCP connections to a certain port
```bash
ss -t 'dport = :<port>
```