cheatsheet

iotop Command in Linux: Syntax, Options & Practical Examples (Ubuntu)

iotop shows real-time disk read and write bandwidth per process and thread on Linux. It reads kernel I/O accounting so you can see which application is saturating storage during slowdowns.

Rohan Timalsina9 min read
cheatsheet

ip Command in Linux: Addresses, Links, Routes, and Troubleshooting

ip from iproute2 configures addresses, links, and routes on Linux. Subcommands ip addr, ip link, and ip route replace legacy ifconfig and route for day-to-day network inspection and temporary changes.

Deepak Prasad9 min read
cheatsheet

screen Command in Linux: Syntax, Sessions, Windows & Key Bindings

GNU screen is a terminal multiplexer that keeps shell sessions alive after disconnect, supports multiple windows in one session, and reattaches over SSH when the network drops.

Rohan Timalsina9 min read
cheatsheet

stress Command in Linux: Syntax, Options & Load Testing Examples

stress spawns worker processes that load CPU, virtual memory, disk I/O, and disk writes so you can test cooling, schedulers, and monitoring under synthetic pressure. It is not installed by default on Ubuntu — install the …

Rohan Timalsina8 min read
cheatsheet

traceroute Command in Linux: Syntax, Options & Route Tracing Examples

traceroute prints each router hop between your Linux host and a destination by sending probes with increasing TTL values and reporting round-trip times. On Ubuntu it ships as the modern traceroute.db implementation with …

Rohan Timalsina11 min read
cheatsheet

tcpdump Command in Linux: Capture Packets, Filters & Examples

tcpdump captures live network traffic or reads saved pcap files, applies BPF filters for TCP/UDP/ICMP and hosts, and prints or writes packets for troubleshooting and security review.

Rohan Timalsina16 min read
cheatsheet

tune2fs Command in Linux: Syntax, Options & ext4 Tuning Examples

tune2fs reads and changes tunable parameters on unmounted or read-only-safe ext2, ext3, and ext4 block devices — mount counts, check intervals, volume labels, UUIDs, reserved blocks, default mount options, and feature …

Rohan Timalsina12 min read
cheatsheet

rpmbuild Command in Linux: Syntax, Stages & RPM Package Examples

rpmbuild drives the RPM packaging pipeline from a .spec file — %prep, %build, %install, and binary or source RPM output. On Ubuntu, install the rpm package for rpmbuild; native Debian packages use dpkg-buildpackage …

Rohan Timalsina9 min read
cheatsheet

sudo Command in Linux: Syntax, Options & Practical Examples

sudo lets permitted users run commands as root or another account using rules in /etc/sudoers and /etc/sudoers.d/. It logs actions, caches credentials for a timeout, and supports non-interactive and environment-control …

Rohan Timalsina14 min read
cheatsheet

su Command in Linux: Syntax, Options & Practical Examples

su runs a shell or single command with another user and group ID. On Ubuntu it uses PAM for authentication; login mode (-) resets the environment and home directory like a real login.

Rohan Timalsina10 min read
cheatsheet

tee Command in Linux: Syntax, Options & Practical Examples

tee reads standard input and writes a copy to every named file while also sending the same bytes to standard output. Use it in pipelines when you want to save command output and still see it on the terminal.

Rohan Timalsina9 min read
cheatsheet

sar Command in Linux: Syntax, Options & Performance Reports (Ubuntu)

sar (System Activity Reporter) prints CPU, memory, disk, network, and load averages from live counters or files collected by sysstat under /var/log/sysstat. Install the sysstat package and enable data collection for …

Rohan Timalsina11 min read
cheatsheet

adduser Command in Linux: Syntax, Options & Practical Examples (Ubuntu/Debian)

On Ubuntu and Debian, adduser is a high-level wrapper that creates and manages local users and groups. It applies /etc/adduser.conf policy, then calls useradd and related tools to set home directories, shells, UID/GID, …

Rohan Timalsina16 min read
cheatsheet

ss Command in Linux: Syntax, Options & Socket Filtering (Ubuntu)

ss (socket statistics) from iproute2 lists TCP, UDP, UNIX, and other sockets on Linux — states, queues, processes, and filters — faster and richer than legacy netstat.

Rohan Timalsina12 min read
cheatsheet

top Command in Linux: Syntax, Options & Process Monitoring Examples

top shows a live summary of CPU, memory, and tasks, plus a sortable process list. Batch mode (-b) prints snapshots for scripts and logs without the interactive TUI.

Rohan Timalsina6 min read
cheatsheet

rsync Command in Linux: Syntax, Options & Sync Examples (Ubuntu)

rsync copies and synchronizes files locally or over SSH using a delta algorithm — only changed blocks are sent. Archive mode (-a) preserves permissions and timestamps; --delete mirrors removals; --dry-run previews …

Rohan Timalsina10 min read
cheatsheet

scp Command in Linux: Syntax, Options & Secure File Copy Over SSH

scp copies files and directories between hosts over SSH using the SFTP protocol by default. It supports recursion, bandwidth limits, identity keys, and ssh_config options on Ubuntu and most Linux systems.

Rohan Timalsina10 min read
cheatsheet

tar Command in Linux: Syntax, Options & Practical Examples

GNU tar bundles files and directories into a single archive and restores them later. Create with -c, list with -t, extract with -x, and add gzip, bzip2, xz, or zstd compression with -z, -j, -J, or -a.

Rohan Timalsina20 min read
cheatsheet

useradd Command in Linux: Syntax, Options & Examples

useradd is the low-level shadow-utils command that creates local Linux accounts in /etc/passwd, /etc/shadow, /etc/group, and /etc/gshadow. Use flags such as -m, -u, -g, -G, -s, and -e to control home directories, IDs, …

Rohan Timalsina10 min read
cheatsheet

swapon and swapoff Command in Linux [Cheat Sheet]

swapon and swapoff cheat sheet for Linux: check swap usage, enable swap from fstab or a swapfile, set priority, and disable swap safely—with real command output from Ubuntu 25.04.

Deepak Prasad6 min read
cheatsheet

How to limit CPU using cgroups (v2 and v1) on Linux

How to cap CPU with Linux cgroups: cgroup v2 cpu.max and cpu.stat, cgroup v1 cfs quota files, systemd CPUQuota and CPUWeight, shared limits with systemd slices, optional CPUQuotaPeriodSec, plus how this differs from …

Deepak Prasad15 min read
cheatsheet

HPE iLO 4 & 5 CLI Commands Cheat Sheet (SSH Command Line Guide)

Learn the most useful HPE iLO CLI commands with this practical cheat sheet. This guide explains how to access the iLO command line using SSH or Onboard Administrator (OA) and run common commands to manage users, network …

Deepak Prasad15 min read