Linux & shell: Kernel, hardware & limits
8 Linux & shell commands: Kernel, hardware & limits. Click a command to see what each part does.
Linux & shell: Kernel, hardware & limitsIndex
- Whole sheet251
- Navigate & list13
- Create, copy, move, delete13
- View & compare files9
- Permissions & ownership31
- Help & shell basics11
- Users & groups6
- Install packages7
- Package & software versions29
- System info9
- Network basics & SSH10
- Zip & compress4
- Shell operators6
- Processes6
- Files & search8
- Text processing pipelines4
- Disk3
- Network5
- Services & logs6
- Archives & copying4
- Firewall7
- Scheduling: cron & systemd timers6
- Storage, mounts & LVM10
- Kernel, hardware & limits8
- Performance & tracing10
- TLS & certificates8
- Packet capture & network debugging10
- Terminal tools8
Kernel, hardware & limits8
sudo dmesg -T | tail -50Kernel messages with readable timesWhat each part does
dmesgkernel ring buffer: hardware errors, OOM killer, disk and network driver messages-Thuman-readable timestamps| tail -50the latest 50 lines
sudo dmesg -T | grep -i -E 'killed process|out of memory'Did the OOM killer kill something?What each part does
grep -i -E '...'lines where the kernel killed a process to free memory, with its name and memory use
lscpu; lspci; sudo dmidecode -t systemHardware overviewWhat each part does
lscpuCPU model, cores, threads, virtualizationlspciPCI devices: NICs, GPUs, storage controllersdmidecode -t systemvendor, model and serial number
sysctl <key>; sudo sysctl -w <key>=<value>Read and change kernel parametersCautionWhat each part does
sysctl <key>e.g. vm.swappiness, net.ipv4.ip_forward, fs.file-maxsysctl -w <key>=<value>change it now; put it in /etc/sysctl.d/*.conf to keep it after reboot
ulimit -n; cat /proc/<pid>/limitsOpen-file and process limitsWhat each part does
ulimit -nmax open files for this shell (Too many open files means you hit it)/proc/<pid>/limitsthe actual limits of a running process (systemd services set LimitNOFILE)
lsmod | grep <module>; sudo modprobe <module>Kernel modulesWhat each part does
lsmodloaded modulesmodprobe <module>load a module with its dependencies (e.g. br_netfilter for Kubernetes)
timedatectlTime, timezone and NTP syncWhat each part does
timedatectllocal time, UTC, timezone and whether the clock is NTP-synchronized (clock skew breaks TLS and tokens)
uptimeUptime and load averageWhat each part does
uptimehow long since boot, users, and 1/5/15-minute load averages (compare with CPU count)
Nothing matches.
My DevOps Playbook by Angelo John Calleja