Jul 28, 2025
This article aims at summarizing all the tools used for debugging a web application or computer.
nslookup
(Windows / Linux) allows to get information about DNS records. dig
Linux a more advanced debugging tool, often pre-installed on Linux.dog
Linux is a simple but powerful alternative to dig
for DNS lookups.traceroute
Linux can trace a packet through its different hops on the WAN network. Uses the packet TTL (incremented one by one) to get this info.tracert
Windows Windows equivalent of traceroutemtr
Linux Powerful linux diagnostic tool. It combines traceroute
and ping
tshark
command-line, Using tsharkWireShark
GUISome of these tools are taken from Michael Hausenblas's Learning Modern Linux excellent book.
# Get info about distribution
cat /etc/*-release
# Get info about Linux release (kernel)
cat /proc/version
# Print all information related to the system
uname -a
cat /proc/cpuinfo
cat /proc/meminfo
cat /proc/diskstats
sudo dmidecode -t bios
free -ht
w
[USER]
(CPU load, ...): top -U [USER]
ps faux
ps -e | grep [process]
stat [filename]
which [cmd]
find /path -name "*.ext"
or in combination with grep
: find . -type f -exec grep -H NAME {};
dd if=/dev/zero of=testfile.dat bs=1024 count=1000
(creates a 1kB file with only zeros)stdout
: command 1> file
or command > file
stderr
: command 2> file
stdout
and stderr
combined: command &> file
or command >file 2&>1
command > /dev/null
stdin
: command < file
yes | tr \\n x | head -c 450m | grep z
du -h /home
df -h
dd if=/dev/zero of=/path/to/disk bs=1G count=1 oflag=direct
See list of modern command-line tools for Unix-based systems on ibraheemdev GitHub's page
tail -f
to follow a journal/log file