md5sum and sha256sum — verify the integrity of files on Linux
—
How to use md5sum and sha256sum on Linux to check that a file arrived intact: create and verify checksum files, check a whole directory, verify a downloaded ISO, and when MD5 is not enough.
tcpdump — capture and inspect network traffic on Linux
—
How to use tcpdump on Linux: pick an interface, write capture filters by host, port and protocol, save packets to a file for Wireshark, see VLAN tags and rotate long captures.
vmstat — monitor memory, swap and CPU on Linux
—
How to read vmstat output on Linux: what each column means, how to tell a memory shortage from a CPU or disk bottleneck, the steal column on a VPS, and the most useful options.
xclip — copy command output to the clipboard from the Linux shell
—
How to use xclip to copy the output of a Linux command to the clipboard and paste it back in the shell, the difference between the primary selection and the clipboard, and wl-copy and wl-paste on Wayland.
alias — create shortcuts for your Linux commands
—
How to create, list and remove command aliases in Bash, make them permanent in ~/.bashrc or ~/.bash_aliases, bypass them, use them with sudo, and when to write a function instead.
dmesg — read kernel and boot messages on Linux
—
How to use dmesg to read the Linux kernel ring buffer: readable timestamps, filtering by level and facility, following new messages live, the Operation not permitted error, and journalctl -k.
nohup — keep a command running after you log out
—
How to use nohup to keep a Linux command running after closing the terminal or an SSH session, where the output goes, and when to use disown, tmux or systemd-run instead.
sshfs — mount a remote filesystem over SSH
—
How to install sshfs on Debian, Ubuntu, Fedora and Arch, mount a remote directory over SSH, unmount it, reconnect automatically, mount it from /etc/fstab, and use rclone mount as an alternative.
chgrp — change the group of a file on Linux
—
How to use the chgrp command on Linux to change the group ownership of files and directories, with practical examples and a comparison with chown
How to add a user to a group in Linux
—
How to add a user to a group in Linux using usermod, useradd, and gpasswd — with examples for existing users, new users, primary groups, and multiple groups at once
Bash for loop — a practical guide
—
Learn how to use the bash for loop in scripts and the command line, with practical examples including counters, ranges, break and continue
How to change the hostname on Linux
—
How to change the hostname on Linux permanently using hostnamectl on systemd systems, and also the traditional method for older systems
bc — GNU Linux command line calculator
—
How to use bc, the GNU Linux command line calculator, for basic and advanced arithmetic directly from the terminal or inside shell scripts
diff — Linux command to compare files
—
How to use the diff command in Linux to compare files and directories, with examples for unified output, patches, and recursive directory comparison.
The site is back after two years offline
—
A short note about bringing the site back online after almost two years offline and three years without publishing new content.