Homgit Lab

Project
workspace

Git repositories, technical notes, and utilities for Linux and self-hosted infrastructure. Sign in to access Git projects and download utilities.

  • Linux
  • Networking
  • Monitoring

Sign in

Use sample values only. Account access is unavailable.

Technical notes

Disk space and inodes on Linux

A filesystem can run out of inodes while it still has free disk space. This can happen when a workload creates many small files. Check both figures for the filesystem you are troubleshooting.

df -h /
df -i /

On a GNU/Linux system, these commands help locate directories that occupy the most space or use the most inodes. Run them on the affected mount point. A large tree can take time to scan.

sudo du -xh --max-depth=1 / | sort -h
sudo du -x --inodes --max-depth=1 / | sort -n

GNU Coreutils df documentation

Checking Nginx after a package update

On Ubuntu, use the full package revision to match a security bulletin. The shorter version printed by nginx -v can stay the same after Ubuntu backports a fix.

dpkg-query -W nginx nginx-common
sudo nginx -t
systemctl is-active nginx

After confirming the configuration and service status, confirm the running process uses the installed binary. Matching device and inode values in the first column indicate the same executable.

pid=$(systemctl show -p MainPID --value nginx)
sudo stat -Lc '%d:%i %n' "/proc/$pid/exe" /usr/sbin/nginx

Finally, open the usual HTTPS address from a client and check the response from the application behind Nginx.

Nginx command-line documentation

Project status

Live monitoring is unavailable.

NGINX video tutorials

Latest NGINX CVEs

Loading NGINX release notices…

NGINX release notes · NGINX security advisories