#1Network
How-to guides
Short, exact answers to the tasks you do every day in IT, DevOps and DevSecOps work — find a port, install SSH, open the firewall, read logs, fix a Pod. Each how-to gives the quick answer first, then the steps on RHEL and Ubuntu, a check, the common problems, and links to the full guides and command pages on this site.
- 250 ready how-tos
- 300 planned, goal 1,000
- 12 areas
How every how-to works
- 1Quick answerThe commands first
- 2Step by stepRHEL and Ubuntu explained
- 3Check itProve that it worked
- 4Fix problemsThe errors you will see
- 5Go furtherFull guides
Ready how-tos
The top 10
#2System
How to Install and enable the SSH server
#3Security
How to Log in with SSH keys instead of passwords
#4Network
How to Open a port in the firewall
#5System
How to Check disk space and find what fills the disk
#6System
How to Read and follow the logs of a service
#7System
How to Start, stop, restart and enable a service
#8Security
How to Create a user with sudo rights
#9Network
How to Test if a remote port is open
#10System
How to Find files by name, size, date or content
Ranks 11–20
#11System
How to Check memory and CPU usage
#12System
How to Kill a process that hangs
#13Security
How to Change file permissions and owner
#14System
How to Create and extract tar.gz archives
#15Network
How to Set a static IP address
#16Network
How to Check the DNS records of a domain
#17System
How to Copy files between servers
#18System
How to Schedule a job with cron
#19System
How to Create a systemd timer
#20Security
How to Check when a TLS certificate expires
Ranks 21–30
#21Web
How to Get a free TLS certificate with Let's Encrypt
#22Web
How to Set up Nginx as a reverse proxy
#23Containers
How to Install Docker on Linux
#24Containers
How to Run a container and publish a port
#25Containers
How to See the logs of a container
#26Containers
How to Free disk space used by Docker
#27Containers
How to Write a small and safe Dockerfile
#28Containers
How to Run an app with Docker Compose
#29Containers
How to Push an image to a private registry
#30Security
How to Scan a container image for vulnerabilities
Ranks 31–40
#31Kubernetes
How to Find why a Kubernetes Pod does not start
#32Kubernetes
How to Get the logs of a crashed Pod
#33Kubernetes
How to Open a shell in a running Pod
#34Kubernetes
How to Port-forward to a Kubernetes service
#35Kubernetes
How to Roll back a Kubernetes deployment
#36Kubernetes
How to Scale a deployment up and down
#37Kubernetes
How to Create a Kubernetes Secret safely
#38Kubernetes
How to Switch between clusters and namespaces
#39Kubernetes
How to Install an app with Helm
#40Kubernetes
How to Back up and restore etcd
Ranks 41–50
#41Git and CI/CD
How to Undo the last Git commit
#42Git and CI/CD
How to Resolve a Git merge conflict
#43Security
How to Remove a secret from Git history
#44Security
How to Sign Git commits
#45Git and CI/CD
How to Create a CI pipeline in GitHub Actions
#46Git and CI/CD
How to Run GitLab CI jobs on your own runner
#47IaC and automation
How to Install a package on many servers with Ansible
#48IaC and automation
How to Store Terraform state in S3 with locking
#49IaC and automation
How to Import an existing resource into Terraform
#50IaC and automation
How to Plan and apply Terraform safely
Ranks 51–60
#51Cloud
How to Log in to AWS with SSO from the terminal
#52Cloud
How to Copy files to and from S3
#53Security
How to Find public S3 buckets
#54Cloud
How to Connect to an EC2 instance without SSH keys
#55Cloud
How to Log in to Azure and choose a subscription
#56Cloud
How to Get the kubeconfig of EKS, AKS or GKE
#57Data
How to Create a PostgreSQL user and database
#58Data
How to Back up and restore PostgreSQL
#59Data
How to Back up and restore MySQL
#60Data
How to See who is connected to a database
Ranks 61–70
#61Data
How to Reset a lost MySQL root password
#62Data
How to Check Redis memory and keys
#63Monitoring
How to Monitor a Linux server with Prometheus
#64Monitoring
How to Build a Grafana dashboard
#65Monitoring
How to Send alerts to Slack or email
#66Monitoring
How to Find slow requests in Nginx logs
#67Network
How to List open network connections
#68Network
How to Trace the network path to a host
#69Network
How to Capture network traffic with tcpdump
#70Network
How to Add a network route
Ranks 71–80
#71System
How to Change the hostname
#72System
How to Set the time zone and sync the clock
#73System
How to Extend an LVM volume and its file system
#74System
How to Add swap space
#75System
How to Mount a disk at boot with fstab
#76Security
How to Find and fix SELinux denials
#77Security
How to Harden the SSH server
#78Security
How to Block brute-force logins with Fail2ban
#79Security
How to Patch a server with security updates
#80Security
How to Find files with risky permissions
Ranks 81–90
#81Security
How to See who logged in and when
#82Security
How to Generate a strong password or secret
#83Security
How to Encrypt a file with GPG or age
#84Security
How to Create a self-signed certificate
#85Web
How to Test an HTTP endpoint with curl
#86Web
How to Check the TLS settings of a website
#87Web
How to Redirect HTTP to HTTPS in Nginx
#88System
How to Back up a server with restic
#89System
How to Sync folders with rsync
#90System
How to Compare two files or folders
Ranks 91–100
#91System
How to Search text in many files
#92System
How to Replace text in many files
#93Languages and build
How to Read JSON in the shell with jq
#94Languages and build
How to Write a safe Bash script
#95Languages and build
How to Create a Python virtual environment
#96IaC and automation
How to Run one command on many servers
#97System
How to Find out why a server is slow
#98System
How to Find slow services at boot
#99Security
How to Reset a lost root password on RHEL
#100System
How to Restart a service automatically when it crashes
Ranks 101–110
#101System
How to Keep a session running with tmux
#102System
How to Rotate log files with logrotate
#103System
How to Keep the journal after reboot and limit its size
#104System
How to Create a systemd service for your app
#105System
How to Give a service its environment variables
#106System
How to Limit CPU and memory of a service
#107System
How to Check the health of a disk
#108Network
How to Share a folder with NFS
#109Network
How to Mount a Windows or Samba share
#110Network
How to Connect two servers with a WireGuard VPN
Ranks 111–120
#111Security
How to Allow a port only from one IP address
#112Security
How to Use a jump host (bastion) with SSH
#113System
How to Manage many servers in the SSH config file
#114Network
How to Open an SSH tunnel to a database
#115Security
How to Lock or disable a user account
#116Security
How to Set password rules and expiry
#117Security
How to Watch file changes with auditd
#118Security
How to Check file integrity with AIDE
#119Security
How to Audit a server with Lynis
#120Security
How to Scan a website with OWASP ZAP
Ranks 121–130
#121Security
How to Find secrets in a repository with Gitleaks
#122Security
How to Find bugs in code with Semgrep
#123Security
How to Create an SBOM for an image
#124Security
How to Sign and verify an image with Cosign
#125Kubernetes
How to Enforce a Kubernetes policy with Kyverno
#126Security
How to Detect a shell in a container with Falco
#127Kubernetes
How to Apply Pod Security Standards to a namespace
#128Kubernetes
How to Write a Kubernetes NetworkPolicy
#129Kubernetes
How to Give a user read-only access with RBAC
#130Kubernetes
How to Set resource requests and limits
Ranks 131–140
#131Kubernetes
How to Add liveness and readiness probes
#132Kubernetes
How to Expose an app with an Ingress and TLS
#133Kubernetes
How to Use a ConfigMap for app settings
#134Kubernetes
How to Run a scheduled job with a CronJob
#135Kubernetes
How to Drain a node for maintenance
#136Kubernetes
How to Upgrade a kubeadm cluster
#137Kubernetes
How to See CPU and memory of Pods and nodes
#138Kubernetes
How to Create a local cluster with kind
#139Git and CI/CD
How to Deploy an app with Argo CD from Git
#140Kubernetes
How to Use Kustomize overlays per environment
Ranks 141–150
#141Containers
How to Build images for ARM and x86 with buildx
#142Containers
How to Run containers without root with Podman
#143Containers
How to Run a container as a systemd service
#144Containers
How to Limit CPU and memory of a container
#145Containers
How to Debug the network between containers
#146Containers
How to Back up and restore a Docker volume
#147Containers
How to Copy images between registries with Skopeo
#148Git and CI/CD
How to Cache dependencies in CI
#149Git and CI/CD
How to Use secrets safely in GitHub Actions
#150Cloud
How to Deploy to Azure from GitHub Actions with OIDC
Ranks 151–160
#151Git and CI/CD
How to Build and push an image in CI
#152Git and CI/CD
How to Test on many versions with a CI matrix
#153Git and CI/CD
How to Make a release with a Git tag
#154Git and CI/CD
How to Work with branches and pull requests
#155Git and CI/CD
How to Rebase a branch on main
#156Git and CI/CD
How to Find the commit that broke something
#157Git and CI/CD
How to Park unfinished work with git stash
#158IaC and automation
How to Write a Terraform module
#159IaC and automation
How to Use Terraform variables per environment
#160IaC and automation
How to Keep secrets out of Terraform
Ranks 161–170
#161IaC and automation
How to Find drift between Terraform and the cloud
#162IaC and automation
How to Separate environments in Terraform
#163IaC and automation
How to Write an Ansible role
#164IaC and automation
How to Encrypt secrets with Ansible Vault
#165IaC and automation
How to Use facts and conditions in Ansible
#166IaC and automation
How to Build a VM image with Packer
#167IaC and automation
How to Set up a new VM with cloud-init
#168Cloud
How to Create a safe S3 bucket with Terraform
#169Cloud
How to Get an alert before the AWS bill grows
#170Security
How to See who did what in AWS with CloudTrail
Ranks 171–180
#171Security
How to Rotate AWS access keys
#172Cloud
How to Create an Azure VM with the CLI
#173Cloud
How to Find costly resources in Azure
#174Cloud
How to Lock an Azure resource group
#175Cloud
How to Create a private Azure storage account
#176Monitoring
How to Query Azure logs with KQL
#177Monitoring
How to Search logs with Loki and LogQL
#178Monitoring
How to Ship logs with Fluent Bit
#179Monitoring
How to Trace requests with OpenTelemetry
#180Monitoring
How to Monitor a website from outside
Ranks 181–190
#181Monitoring
How to Load test an API with k6
#182Monitoring
How to Define an SLO and an error budget
#183Monitoring
How to Write a runbook for on-call
#184Monitoring
How to Monitor TLS certificates with Prometheus
#185Data
How to Tune PostgreSQL memory settings
#186Data
How to Find slow PostgreSQL queries
#187Data
How to Set up PostgreSQL replication
#188Data
How to Find slow MySQL queries
#189Data
How to Restore PostgreSQL to a point in time
#190Data
How to Connect apps to Redis securely
Ranks 191–200
#191Data
How to Create and test a Kafka topic
#192Data
How to Check a RabbitMQ queue
#193Web
How to Balance traffic with HAProxy
#194Web
How to Add security headers in Nginx
#195Web
How to Rate-limit requests in Nginx
#196Web
How to Cache static files in Nginx
#197Web
How to Host two websites on one server
#198Web
How to Route containers with Traefik labels
#199Kubernetes
How to Debug DNS inside Kubernetes
#200Monitoring
How to Write a post-incident review
Ranks 201–210
#201Kubernetes
How to Back up Kubernetes with Velero
#202Data
How to Store files in MinIO with the S3 API
#203System
How to Find a memory leak in a process
#204System
How to See which files a process has open
#205Network
How to Set up a highly available IP with keepalived
#206Network
How to Send server mail through a relay with Postfix
#207Security
How to Read secrets from HashiCorp Vault
#208Security
How to Encrypt Kubernetes secrets in Git with SOPS
#209Security
How to Set up SSO login with Keycloak
#210Security
How to Scan Terraform code with Checkov
Ranks 211–220
#211Security
How to Scan a server for compliance with OpenSCAP
#212Security
How to Share a folder with a group using ACLs
#213Security
How to Write sudo rules safely
#214System
How to Find which package owns a file
#215System
How to Partition and format a new disk
#216System
How to Repair a file system after a crash
#217System
How to Grow an XFS file system online
#218Security
How to Protect a file with chattr
#219System
How to Change kernel settings with sysctl
#220System
How to Load a kernel module at boot
Ranks 221–230
#221System
How to Choose a performance profile with tuned
#222System
How to Clean temporary files with systemd-tmpfiles
#223System
How to Create a local package repository
#224System
How to Register a RHEL server and enable repositories
#225System
How to Run a command once at a set time
#226System
How to Change the priority of a process
#227System
How to Find big files and folders fast
#228Network
How to Mount network folders on demand with autofs
#229Network
How to Write firewall rules with nftables
#230Network
How to Set up a firewall with UFW
Ranks 231–240
#231Network
How to Create a bridge or VLAN with nmcli
#232Network
How to Run your own DNS zone with BIND
#233Network
How to Set up an OpenVPN server for remote users
#234Security
How to Find open ports on your servers with Nmap
#235Security
How to Detect network attacks with Suricata
#236Security
How to Collect security events with Wazuh
#237Security
How to Find vulnerable dependencies with Grype
#238Git and CI/CD
How to Check code quality with SonarQube
#239Git and CI/CD
How to Run a package proxy with Nexus
#240Git and CI/CD
How to Build a pipeline with Jenkins
Ranks 241–250
#241Git and CI/CD
How to Run GitHub Actions locally with act
#242Git and CI/CD
How to Reuse workflows in GitHub Actions
#243Git and CI/CD
How to Deploy from Git with Flux
#244Git and CI/CD
How to Run a Tekton pipeline
#245Git and CI/CD
How to Promote a release from staging to production
#246Kubernetes
How to Do a blue-green deployment in Kubernetes
#247Kubernetes
How to Do a canary release in Kubernetes
#248Kubernetes
How to Autoscale Pods with the HPA
#249Kubernetes
How to Give a Pod persistent storage
#250Kubernetes
How to Run a database as a StatefulSet
The plan — the most used how-tos
Ranked by how often the task comes up in real work. The list grows to 1,000. A ready how-to has a link; the chips open the command page and the full install guide.