Skip to content

Instantly share code, notes, and snippets.

@jesugmz
Last active January 5, 2023 18:37
Show Gist options
  • Save jesugmz/497446520b150f6766ac13f48311f34c to your computer and use it in GitHub Desktop.
Save jesugmz/497446520b150f6766ac13f48311f34c to your computer and use it in GitHub Desktop.
GNU/Linux Debbuging tools

GNU/Linux debbuging tools

top-like interface for container metrics.

DNS lookup utility.

Examples

Show TXT records of the domain pepecos.es:

dig txt pepecos.es

Consider use in combination with watch command to monitor a recently change:

watch dig txt pepecos.es

To force dig using a specific DNS server from which do the query use @<DNS_SERVER_HOSTNAME>. Using Cloudflare's 1.1.1.1 as DNS server:

dig @1.1.1.1 a pepecos.es

top-like I/O monitor. It displays columns for the I/O bandwidth read and written by each process/thread.

top-like network monitor. It listens to network traffic on a named interface, or on the first interface it can find which looks like an external interface if none is specified, and displays a table of current bandwidth usage by pairs of hosts.

List open files by processes.

Reads and writes data across network connections, using the TCP or UDP protocol. It can open TCP connections, send UDP packets, listen on arbitrary TCP and UDP ports, do port scanning, and deal with both IPv4 and IPv6.

Examples

Check if there is connectivity with a database host:

$ nc -zv my-db-hostnamen.tld 3306
Connection to my-db-hostnamen.tld 3306 port [tcp/mysql] succeeded!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment