Benjamin Italiaander / Genres / Tip

Short notes with a handy command or trick.

Linux 20 notes
Give a Linux user access to serial devices such as /dev/ttyUSB0 with the dialout group.
Bash OTP GeneratorJun 5, 2016
Generate TOTP codes in the terminal with oathtool, with the secret encrypted by GPG.
Benchmark how fast a (network) disk handles large files and many small files with dd, split and rsync.
Copy command output to the clipboard with xclip, and a handy shell function for it.
Count logged-in users
Small examples of the date command: weekday number and quarter of the year.
Compare two files side by side with diff, optionally showing only the lines that differ.
Extract a ColumnJun 3, 2016
Extract a single column from a text file with awk.
Extract and inspect the RSA public key that belongs to a private key with OpenSSL.
Use find to list files while skipping hidden files and folders.
Turn command output into a QR code with qrencode, and read QR codes from images with zbarimg.
Git notesNov 30, 2016
Basic Git configuration and how to switch a remote to SSH.
List the remote addresses of outgoing TCP and UDP connections with netstat or ss.
PermissionsMar 12, 2016
Copy permissions and ownership from one file to another with chmod and chown --reference.
The correct permissions for ~/.ssh, your keys, authorized_keys and config.
Split text into one word per line with xargs.
Tools for reading Markdown in the terminal: Glow, Frogmouth, mdless and markdownlint.
Keyboard shortcuts to move windows between workspaces on the Fedora (GNOME) desktop.
A script that builds certificate bundles, creates OpenSSL hash links and sets safe permissions.
Find the local SPICE/VNC display port of a running KVM virtual machine with virsh.

Other genres

All topics and genres β†’