Find a command/
中文
☰

03 / FIELD NOTES

Field notes

One concrete problem at a time. Know when to use a command, why it helps, and what to expect.

Back to overview →

Tags

Know your server before changing it

2 steps

Essential check 1 / 3

Inspect the distribution, kernel, memory, and disk without changing the system.

Read-onlylinuxvpssystemdisk

The SSH port that actually wins

2 steps

Essential check 2 / 3

Find every Port line under sshd_config and sshd_config.d before you reload ssh.

Read-onlysshsshdport

Check services and listening ports

3 steps

Essential check 3 / 3

List failed systemd units, listening ports, and recent errors.

Read-onlysystemdportslogslinux

A port you cannot reach from outside

4 steps

Check the listener, the bind address, UFW, Docker, and the cloud security group, in that order.

Read-onlyportsfirewallufwfirewallddocker

The disk is full

4 steps

Find what takes the space, then clear logs, apt caches, and unused Docker images.

Changes configdiskdockerlogslinux

Where a service writes its logs

3 steps

Read logs for containers and systemd services, and follow them live.

Read-onlylogsdockersystemd

Why a certificate request fails

2 steps

Check DNS, port 80 reachability, and CDN proxying before retrying a Let’s Encrypt request.

Read-onlyhttpsdnsportsnginx

Let nala rank apt mirrors

1 steps

Interactive nala command that ranks apt mirrors before you confirm a change.

Changes confignalaaptmirror

Stop cloud-init from rewriting resolv.conf

3 steps

Write resolvers, then make resolv.conf immutable so DHCP cannot overwrite them.

Changes configdnschattrresolv.conf

See the CPU x86-64-v level

4 steps

Download, inspect, and run the upstream CPU check before choosing a supported kernel package.

Changes configxanmodbbrcpu

BBRv3 still reports bbr

2 steps

Inspect kernel and congestion control; the name bbr alone does not identify its version.

Read-onlybbrxanmodsysctl

List CrowdSec bans

2 steps

Read-only CrowdSec decisions and metrics without inserting a ban.

Read-onlycrowdseccscli

Find who holds port 8080

1 steps

Find the process listening on 8080 when CrowdSec local API cannot start.

Read-onlycrowdsec8080ss

Cloud kernel and generic kernel package names

1 steps

List installed linux-image packages to compare cloud and generic metapackages.

Read-onlydebiangrubcloudkernel

Cancel a reinstall before reboot

1 steps

Cancel a pending bin456789/reinstall before the machine reboots and erases the disk.

Changes configreinstallddreset

Fail2ban and the CrowdSec bouncer

2 steps

Check whether Fail2ban is active before you add the CrowdSec firewall bouncer.

Changes configfail2bancrowdseciptables