10 Underrated Linux Tools Every Sysadmin Should Master
This guide presents ten lesser‑known but powerful Linux utilities—such as at, systemd‑run, tuned, lsof/ss, journalctl, chattr, MOTD/issue, watch/diff, strace/ltrace, and hidden cron checks—each with practical examples to boost daily sysadmin efficiency and confidence.
Long‑time Linux administrators often discover hidden gems that dramatically improve productivity. This article curates ten low‑profile yet highly effective Linux tools and configurations, providing concise explanations and ready‑to‑run command examples.
1. at and batch : Forgotten scheduling utilities
While cron handles recurring jobs, at and batch are ideal for one‑off tasks. Example: echo "shutdown -h now" | at 11:00 PM Or to defer a resource‑intensive operation: echo "updatedb" | batch These commands schedule work without editing configuration files and run unattended.
2. systemd‑run : Quickly launch temporary services
Run a command as a transient systemd service without creating a unit file:
systemd-run --unit=backup-job tar -czf /backup/home.tar.gz /homePerfect for testing services or scheduling ad‑hoc maintenance tasks.
3. tuned : Intelligent performance tuning
tunedautomatically adjusts kernel parameters based on workload type (virtualization, network throughput, low‑latency, etc.). Install and apply a profile:
dnf install tuned tuned‑adm profile throughput‑performanceThe system instantly adopts optimal settings for the selected scenario.
4. lsof -i + ss : A powerful combo for port inspection
Replace the outdated netstat with a faster, more detailed view:
lsof -i :80 ss -tulwnIdentify which process occupies a port and see connection states at a glance.
5. journalctl -xeu : Focused log debugging
Skip line‑by‑line log scrolling; this command shows recent error entries for a specific service: journalctl -xeu nginx Highlights relevant messages, speeding up troubleshooting.
6. chattr : Make files immutable
Protect critical files from accidental modification or deletion, even by root: chattr +i /etc/passwd To edit later, remove the immutable flag first.
7. Custom login banners with /etc/motd and /etc/issue
Display a custom message on SSH login to reinforce branding or security awareness:
echo "Authorized access only. IP logged." > /etc/issueMeets compliance requirements while reminding users of proper usage.
8. watch + diff : Real‑time file change monitoring
Detect modifications instantly, useful for config comparison or log tracking:
watch -d diff <(cat config1) <(cat config2)The highlighted differences update every few seconds.
9. strace and ltrace : Peek inside a running process
Trace system calls or library calls of a live process, e.g.: strace -p $(pidof nginx) Helps pinpoint faults, permission issues, or performance bottlenecks.
10. Hidden cron‑execution checks
Verify that scheduled cron jobs ran successfully by inspecting logs:
journalctl | grep CRON # or grep CRON /var/log/syslogNo extra log redirection is needed; the system logs already contain the information.
By incorporating these tools into a personal cheat‑sheet or handbook, sysadmins can dramatically reduce manual effort, accelerate debugging, and elevate overall operational reliability.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
