ACIP.org · Home Lab Portal

Linux CLI and Bash Learning Library

A personal, read-only reference for Linux system discovery, Bash scripting, hardware inventory, service verification, and home-lab operations.

Start with read-only commands. Review output before using commands that change packages, services, filesystems, firewall rules, or network configuration.

Learning areas

Linux CLI

Command references for navigation, files, processes, permissions, and system inspection.

Open CLI library →

Bash scripting

Reusable patterns for variables, command checks, functions, output, logging, and safe automation.

Open Bash notes →

Service status

Links and notes for local services, dashboards, streaming components, and controlled tests.

Open status reference →

Start here: hardware discovery

Command Primary purpose Use it when
sudo lshw -short Broad summary of detected system hardware You need a fast overview of CPU, memory, buses, disks, and network devices
lspci -nnk PCI/PCIe hardware and active kernel drivers You are identifying GPUs, Ethernet controllers, audio devices, or NVMe controllers
lsusb -t USB topology and assigned drivers You are tracing USB hubs, adapters, card readers, or removable devices
lsblk -o NAME,SIZE,TYPE,FSTYPE,MODEL,TRAN,MOUNTPOINTS Storage devices, partitions, models, transport, and mount points You need to understand physical and logical disk layout
ip -br link Network interfaces and link state You are checking Ethernet, Wi-Fi, virtual, or VPN interfaces

First Bash pattern

Label your work, run one safe command, and keep the result readable.

#!/usr/bin/env bash set -euo pipefail echo "=== CPU ===" lscpu echo echo "=== Storage ===" lsblk -o NAME,SIZE,TYPE,FSTYPE,MODEL,TRAN,MOUNTPOINTS