IT

Why knowing Linux commands is not enough for sysadmins

Learning Linux commands doesn't guarantee the ability to fix real server issues. Analyzing a payment service incident and the value of diagnostics.

·3 min read
Why knowing Linux commands is not enough for sysadmins

Working as a system administrator for years shows that learning basic Linux commands, managing permissions, reading logs, and writing Bash scripts do not guarantee that someone can resolve real server malfunctions. The problem becomes especially obvious when, instead of a clear practical task, an engineer receives a generic user message saying 'Nothing works.' At that moment, the lack of instructions, action sequences, and system understanding becomes the primary obstacle.

  • Knowing command syntax and utilities does not replace the logic of system diagnostics and understanding OS internals.
  • A training incident with an unavailable payment gateway shows that an active status in systemd does not guarantee application health.
  • Troubleshooting points to the NSS configuration (/etc/nsswitch.conf) where DNS lookups were missing.
  • Real sysadmin skill lies in building hypotheses and finding root causes, not blindly restarting services.

Anatomy of a failure: why systemd is not enough

Let's look at a training incident where payment processing failed: the payments service cannot reach the payment gateway, even though the process itself continues running. In a Docker-based test environment, the gateway is simulated by an HTTP service, while systemd manages the lifecycle. Running systemctl reports that the service is active, yet the application returns an error to users.

There is actually no contradiction here, because an active status only confirms that the process exists and accepts connections, not that it has access to necessary dependencies. An engineer's first hypothesis is usually that the local DNS server does not know the gateway address. However, restarting the payments service or tinkering with network settings yields no changes, leaving the application returning errors.

Read alsodamn.academy 0.4.0: browser-based DevOps learning platform with Linux and Kubernetes

The role of NSS and name resolution mechanisms

Running dig returns a correct response from the DNS server, but the application keeps failing. Does the application obtain the IP address in the same way? In glibc-based Linux systems, the lookup order for name sources is determined via NSS (Name Service Switch), configured in the /etc/nsswitch.conf file.

In this training scenario, the system searched for names solely within /etc/hosts, omitting DNS queries from the search order entirely. You can query the DNS server with dig all you want and get valid answers, but the application remains isolated. Restoring DNS to the sources list in the configuration file reveals the fix, though the application's background loop requires some time to update its state.

The gap between syntax knowledge and system thinking

Solving this problem did not require ultra-rare utilities, complex scripts, or deep kernel hacking. The main effort was spent on finding the root cause, building logical hypotheses, and verifying them under conditions of incomplete data. A successful result from one specific check does not automatically mean success for another part of the chain.

This is why the approach of focusing heavily on memorizing Linux commands and parameters is flawed, as documentation can always be referenced instantly. The only viable path to mastery is working with pre-broken environments where symptoms must be diagnosed independently without predefined step-by-step guides.

Source: Все публикации подряд на Хабре

Related articles