Linux

From Miscellany

CLI Commands

  • fzf - allows you to perform interactive or dynamic searches via an interactive interface for effortless navigation and selection from matching options.
  • read - take single line input from the keyboard or from the file descriptor and store it in a variable.
  • ps ax - the /ax/ option causes all running processes to be listed, not just those in the current terminal session
  • Arch Linux Update with sudo pacman -Syu - See It's FOSS article explanation.

Tips & Apps

Keep SSH Alive

Linux kills running commands when SSH session ends
How to keep commands running after logout

CSV in Terminal

Working with CSV files in the terminal?
You can make them readable by aligning columns neatly with column:
$ cat inventory.csv | column -t -s
The -s, flag tells it to use commas as separators, and -t formats the output into a clean table.

find last changed config

Use this command to see just the config files edited within the past day. The -mtime -1 part means "changed within the last day."
find /etc -type f -mtime -1

grep

Use the grep command with the -R option for recursive search, combined with multiple --include options to specify file types. This lets you efficiently search for a pattern only in desired file extensions within a directory and its subdirectories.
grep -R --include=*.js --include=*.ts --include=*.jsx --include=*.tsx "pattern" /path/to/dir

email alert of disk full

read this article from Linux Handbook for how to set up alerts and send email from a Linux server.

BentoPDF

BentoPDF is a privacy-focused, open-source PDF editing toolkit that works entirely client-side without uploading files to any server. It can be self-hosted using static files or Docker, making it ideal for secure workflows and offline environments.

Gradle Build Tool

Gradle is an open source build system for Java, Android, and Kotlin developers. It is installed and run using this code once a github repo of a project that includes it is cloned, and you cd into the directory: ./gradlew app:run

CrossPaste

CrossPaste installed from cloned GitHub repo using Gradle. App is running, but without desktop display. It installed an older version of Gradle (8.13) which uses an older Java SDK than the one installed on my computer.
So far it is unable to be installed on my Raspberry Pi 5 due to unsatisfied dependencies, and the Android app costs $2.00, which I'm unwilling to pay for an app with undemonstrated benefits. So I'll back-burner this one until it is more developed.

SSH into VirtualBox Guest

How to SSH into a VirtualBox Guest virtual machine

Using Cron & Crontab

How to use cron and crontab on Linux

Reset Lost Root Password

How to Reset Root Password in Linux

System Install Date

How to Find Linux OS Installation Date

Check Linux System Bios

How to Check Bios Version on Linux

Home Lab Troubleshooting

15 Troubleshooting Commands

Clean $PATH Display

If you have trouble reading the directories in the $PATH variable, use the tr command to translate colon (":") characters to newline characters ("n") so they can be displayed in lines:
$ echo $PATH | tr ":" "\n"
from TRÄW on Substack

Docker Volumes

To create a Docker volume:
docker volume create [name of volume]
To use a volume, to make data persistent, use these commands:
docker run -it --rm --mount source=[volume name],destination=[directory] [image name]

Manjaro Quirks

Package Management

Manjaro, being an Arch-derived distro, doesn't use apt, but rather pacman. However, other cross-platform managers like npm or flatpak or snap also work.

DevOps

Free websites to learn DevOps 👇 
by @govardhana_mk

Learn Linux → linuxjourney 
Learn Git → githowto 
Practice Docker → play-with-docker 
Build CI/CD → docs.github 
Write Pulumi → pulumi. com/tutorials
Launch AWS → aws. amazon
Understand Kubernetes → kubebyexample
Do Labs → kodekloud. com/free-labs

Linux eMags, Blogs & Podcasts


Apps of Interest