Test what you actually know about Linux. Free sample questions below, from easy to hard, with instant explanations.
grep searches text for lines matching a pattern, so grep 'connection refused' app.log instantly pulls out every matching line, even from huge files. chmod changes file permissions, cron schedules tasks, and systemctl manages services, none of which search file contents.
Cron executes jobs with a minimal environment, often missing the PATH and other environment variables that are normally set up in an interactive login shell, so commands the script assumes are available may not be found. The fix is usually to use full paths to commands or explicitly set the needed environment variables inside the script. The other options describe limitations that don't actually exist in cron.
This specific sysctl is a targeted security switch: setting it to 1 stops regular, non-root users from loading their own eBPF programs into the kernel. That matters because eBPF's verifier has historically been a target for privilege-escalation exploits, so closing that door to unprivileged users removes a whole class of attack, without disabling BPF entirely for root or authorized processes.
$HOME is an environment variable that always points to the current user's home directory, so scripts using it work correctly no matter who runs them. /root is specifically the home directory of the root user only, and a hard link or process ID have nothing to do with finding a user's home folder.
SSH deliberately refuses to use an authorized_keys file (or .ssh directory) that is writable by other users or groups, since that would let anyone tamper with which keys are trusted. Permissions of -rw-rw-rw- are far too permissive; it should typically be 600 (readable and writable only by the owner). Fonts, timezones, and key expiration aren't real factors here.
File labels (what ls -Z shows) control access to files and directories specifically, they have nothing to do with whether a process is allowed to make NETWORK connections. That separate behavior is governed by SELinux booleans, and something like httpd_can_network_connect being off by default is exactly what would block outbound database connections even when every file is labeled correctly.
lsblk walks the kernel's own block-device tree and shows it as a hierarchy, which naturally includes things like LVM volumes, NVMe namespaces, and loop devices. Tools like df or mount only show what's currently mounted somewhere, not the full picture of every block device that exists.
journalctl -u myapp shows the log output specifically captured from that systemd service, including the error that caused it to fail, which is the fastest way to diagnose the problem. Rebooting the server or reinstalling the OS doesn't address the underlying cause and wastes time, and deleting the service file would only make things worse.
A ulimit set interactively in a shell only affects processes started from that shell session, not services launched independently by systemd at boot or via systemctl. To raise the limit for a systemd managed service, you need to set LimitNOFILE= in that service's unit file (or a drop in override) and then reload systemd and restart the service. It's not about needing a reboot or a bigger number, the setting simply never reached the service in the first place.
A zombie (Z state) process has already terminated; its exit code just hasn't been collected via wait() by the parent yet. It uses no CPU or memory, only a slot in the process table, and normally clears once the parent reaps it, or once the parent exits and the zombie is reparented and reaped by init. Uninterruptible I/O wait is D state, a different and often more urgent problem than a harmless zombie.
Real scenario-based DevOps questions, hands-on practice, and clear explanations for every answer.