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

resolvectl status

Flush local DNS caches

resolvectl flush-caches

Connections and ports with ss

List all listening UDP oder TCP sockets including the PID

ss -tulpe

List all TCP connections to a certain port

ss -t 'dport = :<port>