Ask HN: What Linux diagnostic tools/commands do you use?
I've been writing a basic script (https://github.com/adampie/granscan) and was looking for feedback, what diagnostic tools/commands do you guys use? How should I change the script?
(
10 comments
| 23 points
| on HN
)
ltrace - same as above, if strace is not enough
perf trace - if you don't know the exact process to strace upfront
https://github.com/brendangregg/perf-tools - to track disk accesses or exec calls
env LD_DEBUG=all - debugging dynamic linker issues
Perhaps something that performs basic connectivity tests might be useful, too -- pinging the router, an external IP (like 8.8.8.8), and a FQDN (like google.com) would be a good quick test of both internal connectivity, external connectivity, and DNS resolver.
That's pretty much it, otherwise I have a whole lot of cli tools too. Things like git, tmux, mosh, rails.. but I guess they don't count.
Okay, ok pretty much all of them. :)
EDIT: ... curl, jq, cat, less, grep, awk, lynx, watch, parallel, xargs, head, tail, sqlite3, rsync, scp...
netstat
strace
top