Category: Command-line Interface
-
Fix Debian Bookworm non-free changed to non-free-firmware
While not nearly as frequent as the weirdness I used to experience with Arch Linux, Debian has it’s fair share of unique problems to solve. This week’s cropped up while running an apt update before running an apt upgrade. Fortunately, most of the stuff I run into on Debian is…
-
Unzipping multiple files from the command-line
Ran into an issue recently where I attempting to unzip a directory of files, but the “Extract” and “Extract to” options stopped showing up in the GNOME Files app. Before realizing that the issue was due to there being a non-ZIP archive in the directory that I had selected, I…
-
Check cluster size of FAT32 disk in Linux
After venturing into retro gaming by way of an Anbernic RG35XX and a PowKiddy v90, I decided it was time to dust off my old Nintendo 3DS XL and get it a bit more battle ready to do some retro gaming. Part of the spring cleaning was to upgrade the…
-
Parsing arguments in shell script
I write a good amount of shell scripts, but I tend to use arguments pretty sparingly. Because of this, my implementation to handle said arguments tends to be pretty weak. Some good examples are the arguments needing to be passed in a specific order and a lack of using long…
-
Removing unneeded Firefox ESR language packs on Debian
I went to run an apt upgrade today and came to realize that I had over 60 language packs for Firefox ESR installed. Seems somewhere along the way I accidentally installed these language packs, or perhaps installed the meta package firefox-esr-l10n-all that pulls in every single language pack that’s available….
-
Wait for open port before running command
There comes a time in every software engineer’s life, when they need to run a command, but only after a port has been opened by a completely separate process. Sure, you could sit around and wait for the port to open up before running your command, but what’s the fun…
-
Enabling and disabling unattended upgrades on Debian and Ubuntu
The unattended-upgrades package on Debian is absolutely fantastic. It takes cares of the stable packages that can be installed safely automatically, leaving you with fewer manual upgrades that you have to deal with yourself. Sadly though, I ran into an issue recently where the unattended-upgrades script was running in the…
-
Key is stored in legacy trusted.gpg keyring
One of the more noticeable things to come out of me switching from Arch Linux back over to Debian, is that I’m rarely running into any issues. Because I’m not running into any weirdness, it’s been at a detriment to my blog, as my time on Arch was a constant…
-
Node.js REPL history
Node.js has included a persistent history with it’s REPL (real-eval-print loop) for quite some time now. It’s a fantastic quality of life feature, and it even supports reverse-i-search. The other day, I got to wondering, where the heck does this history even live? Turns out, it’s just living in a…
-
Show hidden files with tree
The tree command is one of my favorites. As the name of the command suggests, it simply lists the contents of a directory in a tree-like format. Think of it like ls *, which outputs the contents of each directory, but instead of a flat list, the files are shown…