Linux / CLI / DevOps

Linux / CLI / DevOps

Tracking configuration sources with git config –show-origin: Precedence of system, global, and local

Where Git's user.name comes from. Using --show-origin and --show-scope in a temporary repository, explaining the difference between local and command, and addressing secrets in CI.
Linux / CLI / DevOps

Predicting next execution time with systemd-analyze calendar – Differences between OnCalendar and Persistent

Calculate the next execution time of a systemd timer without changing configurations. Review OnCalendar timezone specifications, Persistent, AccuracySec, and differences from actual services.
Linux / CLI / DevOps

What happens if the same process runs twice? Preventing duplicate execution with Linux flock and Windows Named Mutex

Compare Linux flock and Windows Named Mutex through the same duplicate execution experiment, covering timeouts, abnormal termination, and deadlocks.
Linux / CLI / DevOps

Checking Path MTU with Linux tracepath: Using pmtu in addition to routing for troubleshooting

This article explains how to check routes and Path MTU using Linux tracepath, and what to look for when using -n, IPv4/IPv6, and troubleshooting VPNs or size-dependent communication.
Linux / CLI / DevOps

Working on hotfixes simultaneously while keeping main open with git worktree – Reducing checkout switches

This article explains the basic steps and cleanup for using git worktree to open a hotfix branch in a separate folder while keeping the main working tree intact.
Linux / CLI / DevOps

Why do df and du capacities not match? – Separating the entire filesystem from visible files

This article outlines what Linux df and du measure, and provides a starting point for isolating why the figures do not match during capacity exhaustion, without resorting to deletion.
Linux / CLI / DevOps

What to Check Before Changing Nginx Configuration: How to Use nginx -t vs -T

A practical guide explaining the differences between nginx -t and -T, including safe pre-reload checks, inspecting active included configurations, and precautions when sharing configurations externally.
Linux / CLI / DevOps

Who does /proc/self point to in Linux? Understanding it by comparing Bash and awk PIDs

When reading /proc/self/status from Bash using awk, why does it show awk itself instead of Bash? Safely observe procfs using read-only operations.
Linux / CLI / DevOps

Checking systemd dependencies before making changes: systemctl list-dependencies and –reverse

Observe dependencies in both the normal and reverse directions without modifying systemd units.
Linux / CLI / DevOps

How to choose between systemctl status and show: Programmatically determining service status

Comparing the human-oriented output of systemctl status with the key=value output of show, leading to monitoring and automated determination.