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.
Show configuration including used resolvers
resolvectl status
Flush local DNS caches
resolvectl flush-caches
List all listening UDP oder TCP sockets including the PID
ss -tulpe
List all TCP connections to a certain port
ss -t 'dport = :<port>