Small command-line tools and tricks I use every day: text, images, clipboard, QR codes and my terminal setup.

10 notes
Bye Bye Screen, Hello Zellij (Old note) Zellij, a modern terminal multiplexer that replaces screen and tmux, plus a fix for copy-paste. I now use kitty.Mar 28, 2016
Copy and Paste in the CLI Copy command output to the clipboard with xclip, and a handy shell function for it.Nov 3, 2016
Diff: compare two files Compare two files side by side with diff, optionally showing only the lines that differ.May 11, 2016
Extract a Column Extract a single column from a text file with awk.Jun 3, 2016
Generate a QR code from a pipe in the Linux CLI Turn command output into a QR code with qrencode, and read QR codes from images with zbarimg.Jan 1, 2024
ImageMagick Convert, resize and batch-process images and PDFs with ImageMagick's convert and mogrify.Oct 10, 2016
Kitty Terminal: My Working Config My kitty terminal setup on Linux: a custom tab bar with a clock, clickable files, images in the terminal, SSH that just works, and the shortcuts I use every day.Feb 27, 2023
List outgoing connections List the remote addresses of outgoing TCP and UDP connections with netstat or ss.Apr 2, 2016
Put every word on its own line Split text into one word per line with xargs.Oct 4, 2016
Read Markdown in the CLI Tools for reading Markdown in the terminal: Glow, Frogmouth, mdless and markdownlint.Nov 22, 2016
README.md PDF

💻 CLI

Small tools and one-liners for the terminal. Most of them answer a question I had more than once.

I want to…Note
set up a nice terminalKitty Terminal: my working config, Bye bye screen, hello Zellij
copy command output to the clipboardCopy and paste in the CLI
compare two filesDiff
take one column out of a text fileExtract a column
put every word on its own linePut every word on its own line
resize or convert images and PDFsImageMagick
turn output into a QR codeGenerate a QR code from a pipe
read Markdown in the terminalRead Markdown in the CLI
see where my computer connects toList outgoing connections

⚡ Five I use all the time

command | xclip -selection clipboard     # output to the clipboard
diff -y --suppress-common-lines a b      # only the lines that differ, side by side
awk '{print $2}' file.txt               # the second column
echo "https://tlnd.org" | qrencode -t ansiutf8   # a QR code in the terminal
ss -tunp                                 # current connections with their program

🛠️ My terminal tools on GitHub

RepositoryWhat it is
kitty_terminal_working_config_exampleMy complete kitty configuration with Oh My Zsh, ready to copy
bookmarksbm: bookmarks as Markdown files, managed from the command line like pass
calcurse-bash-extention and calcurse_export_to_htmlA day overview from the calcurse calendar, and an export of it to HTML

More: the Linux CLI cheatsheet and the networking cheatsheet.