25 practical automations

Linux & Bash

Command-line recipes for Linux environments. Each guide includes full code, usage instructions, and ideas for making it your own.

Search this category ↗
BashBeginner

Check inode utilization

Report inode availability when small-file counts can exhaust capacity before disk bytes.

Linux & Bash
BashBeginner

Describe CPU topology

Read architecture, threads, cores, sockets, NUMA, and virtualization metadata.

Linux & Bash
BashBeginner

Inspect active swap

List active swap devices and files with size, usage, and priority.

Linux & Bash
BashBeginner

Inspect block devices

Display disks, partitions, filesystem types, and mount points without repairing anything.

Linux & Bash
BashBeginner

Inspect command resolution

Find Bash builtins and PATH matches for command names without executing those commands.

Linux & Bash
BashBeginner

Inspect mount options

Display the filesystem source, type, and options for a selected path.

Linux & Bash
BashBeginner

Inspect resolver settings

Show systemd resolver configuration or fall back to resolv.conf without sending queries.

Linux & Bash
BashBeginner

Inspect SSH file modes

Display owners and permission modes for a selected SSH directory without printing key contents.

Linux & Bash
BashBeginner

Inventory PCI devices

List PCI hardware identifiers and kernel driver bindings.

Linux & Bash
BashBeginner

Inventory USB devices

List locally connected USB devices with numeric vendor and product IDs.

Linux & Bash
BashBeginner

Read kernel warnings

Show the last 100 warning and error messages retained in the kernel ring buffer.

Linux & Bash
BashBeginner

Report local routes

Read IPv4 and IPv6 routing tables without sending traffic.

Linux & Bash