Tagged CLI Tool

App to Uninstall Apps on CLI

My previous app remover was a one-time purchase app that went into maintenance mode with no major improvements since its release. It also lacks one feature I’d consider fundamental, one I would find useful for AI-assisted environments — exporting the list of files it found. Search for an app, and it gives back a listing in its GUI. For a human end user, that may be enough. Put AI into the mix, though, and a text list not only makes it easier to keep track of what was removed but also lets the AI vet the files before they are…

How to Remedy “Go to Line” on Nano Editor

There are a few annotations that only Unix-likes are fixated on, one of which is ^. It means the Control key on the keyboard. Official Mac keyboards often include the annotation right on the keycaps, so it is never difficult to find. However, there are shortcuts that just won’t work even after the deciphering. For example, “Go to Line” on GNU nano. The Homebrew version of nano editor says the shortcut is ^/, yet it fails to register.

How to Stop All Docker Containers with Single Command

In a home lab environment, the server is bound to go through more changes than conservatively-run enterprise counterparts. It is, after all, part of the experience. And one core difference in approach between the two environments is downtime. In the corporate world, server downtime is lost revenue. In the home lab world, well-architected downtime is yet another small project finished.

How to Change tmux Scroll Buffer (History)

It’s funny how I discover the settings I would have wanted to change before I run a massive migration script. This is a story of tmux, yet again. tmux is definitely a better tool to have when the work is done remotely over Terminal. The only downside of it all, aside from being old-fashioned CLI, has to be what I took it for granted on local Terminal sessions — history. tmux has limited history or scroll buffer.

How to Add Mouse and Scroll Shortcut for tmux

While tmux is a wonderful tool on its own, for mere mortals like myself, I jump back and forth between GUI and CLI. At least, that’s the impression I am getting from tmux why I am not getting 100% out of it. The shortcuts, quite frankly, are not intuitive for modern GUI users mind.

How to Turn on Mouse and Scroll on tmux

Since I am still in the process of moving projects over from Pi, one of the big issues at hand is keeping tabs on the scripts I wrote. As much as I’d like to believe all my databases live on SSD, they don’t. HDDs are frustratingly slow, and the modern databases are designed around it. It’s really the matter of time. Using tmux, one does not need to worry about keeping the ssh session alive.

How to Fix gdbm Issue for Python 3.14.2 on pyenv

This post is for the documentation purpose. Looking back, most people would immediately find the solution before questioning all the other myriads of avenues of possibilities like I did. Long story short, fixing the problem wasn’t the issue. It was why it happened that boggled my mind.

How to List CPython on Pyenv

Python, with its dominant status, does not have an easy way to install and kickstart the experience for beginners or anyone who simply wishes to run Python scripts. Fortunately, for most modern systems, it comes packaged with some version of Python — which is also inevitably an open invitation for disaster. Python has been changing rapidly since version 3, and some of the scripts written in post 3.0 era are inherently incompatible with historical versions that may have been shipped with the OS. This is where pyenv comes in.

How to Change Default Shell to Zsh

Bash had been the staple of CLI shell for macOS until macOS Catalina in 2019. For unpublished reason, which is speculated to be Bash’s license, Apple has decided to change the default shell to zsh. Regardless, since the adoption, Terminal would display a short warning and a method to switch over to zsh.

App to Find Tmux Key Shortcuts and Commands

Many CLI-based apps on Unix-like ecosystem tends to have long keyboard shortcuts list; it also means being an experienced user in these worlds come with some tall orders. Personally, I think vim and tmux are the prime examples of being useful if all the keys are etched to your muscle memory. For mere mortals like myself, they offer fascinating opportunity but with the most weird of key combinations at times.

App to Manage Python Versions

I know it’s a well known tool. But having introduced Python many times as go-to method to write codes to automate and for personal uses, I realize now that I didn’t mention the tool to manage Python. Unlike like programming languages, Python has gone through some major changes from versions to versions, most notably from Python 2 to 3.

How to Disable “Open in Windows Terminal” in Context Menu

If your intent with Windows is to develop or write codes, “Open in Windows Terminal” in the context menu may be a nice touch. But for the majority of the average users, including myself who only use Windows as a secondary, having an added option to already well-established UI can simply be disturbing.

How to Change Num Lock Default Settings on macOS Terminal

I suspect this is yet another “tabs or spaces” question for developers, but I believe there is a silver lining for all —we want consistent UIs. I want my numpads to work as number pads throughout. There are only few cases when I need it to be something else, be it may directional keys, application keys, or etc.

How to Setup Tmux Pane Synchronization Shortcut

Tmux comes in incredibly handy in multitude of situations, and one of them is when you are handling multiple ssh connections to pi devices or something akin to IoT devices. Assuming all the setup is already done on the local device, and this is part of your regular maintenance routine, logging in to each device every time can be time consuming and rather annoying.

Compress Tar without Parent Folder

I’ve written on compressing files with XZ algorithm. If you had done so already, you would’ve noticed by now that using that command line by line will cause the program to create an archive with all of its parent folders included.