With the end of Command Line Week, I wanted to be sure to get in one more article about some phenomenal CLI/TUI applications that are out there. I’ve mentioned each of these over the last few episodes of the podcast, but for those of you who haven’t tuned in yet, here they are!
Ranger File Manager
Open your terminal emulator of choice. Maybe that’s Konsole, Alacrity, Guake, or Gnome Terminal in Linux. Maybe it’s iTerm or Apple’s built in Terminal in macOS. Maybe it’s a simple CMD prompt, a PowerShell window, or (for the forward thinkers out there) Windows Terminal in Windows. Now how do you navigate your directories and filesystem? Sure, you can run *ls*, *dir*, *cd*, *cat*, and the like. It works, and it’ll serve you well to know how to do that. But what about when you want something that just looks a bit cleaner? A bit prettier? Maybe you should check out Ranger.
Ranger allows you to traverse your filesystem with ease. According to the project’s README file:
ranger is a console file manager with VI key bindings. It provides a minimalistic and nice curses interface with a view on the directory hierarchy. It ships with
rifle
, a file launcher that is good at automatically finding out which program to use for what file type.
It runs natively on UNIX-like systems and can easily be installed on Linux through the your package manager, and on macOS using Homebrew. While there isn’t a native way to run it in something like PowerShell, you can still run it on Windows via WSL — which integrates nicely into a single tabbed experience with PowerShell, CMD, and Azure Cloud Console using Windows Terminal.
Install on Linux
For Debian-based systems:
sudo apt install ranger
For RPM-based systems:
sudo dnf install ranger
For Arch-based systems:
sudo pacman -Sy ranger
Install on macOS via Homebrew
brew install ranger
Links Web Browser
Are you sick and tired of the modern web? Sure it’s fancy and it looks pretty, but under the hood it’s a bloated mess; chock full of JavaScript and contempt. Don’t know what I mean? Do a web search for a recipe. Any recipe really. Click on the top link (which will probably be from AllRecipies.com) and see what happens. You computer will likely slow down. The fans will likely spin up. The page will jump around as the ads load, one by one, coercing you into a game of cat and mouse as you try to find the simple recipe without accidentally clicking on the banner ads lining the page, the subscription-popups, the auto-playing video ad, and the in-line text ads. It’s an absolute nightmare, and I hate it with a passion that burns like the fires of a thousand suns… that may be a little hyperbolic, but you know what I mean. But there is a better way.
We’ve discussed sites like FrogFind and 68k.news in the past, but if that’s not enough for you and you want to go beyond Thunderdome, check out Links.
Links is a terminal-based web browser that has been around since the late-1990’s. It’s minimalist approach strips all of the nonsense out of web browsing leaving you with a simple text interface as you peruse the internet.
While a cool project, and a useful tool, Links does have its limitations as you can imagine. It does not — nay, cannot — render JavaScript. While I see this as a net positive, it does break many modern websites. It’s also limited to the HTML 1-4 standards, so no HTML5 functionality. You can still view the text of those sites, but any special features using HTML5 technology is a no-go. And obviously you can’t view images or play videos in Links, but it will allow you to download the file (at least with images) to view on your computer.
All in all, Links is a solid little web browser, but as the internet continues to grow and develop, we will find more and more sites not working with it. Like with Ranger, you can install it from your package manager of choice in Linux, macOS via Homebrew, and Windows via WSL.
Tilde Text Editor
I like text editors. I’m not talking things like Atom, Sublime Text, or Visual Studio Code. I’m talking Notepad, TextMate, and Gedit. I guess in some ways I really am a simple man. Just give me a basic window with a cursor. Maybe throw in some syntax highlighting, maybe some line numbers and I can be quite satisfied.
I’m so easy to please that my favorite text editor, to this day, is MS-Edit from MS-DOS 6.22. I’m sure it was on earlier versions of DOS, but that’s really the only version I’ve had real experience with. There’s just something about that blue background with the old school console font that just makes MS-Edit a fun editor to write in. There are times where I wish that Microsoft would just open source it so we could get it running on modern systems as well. And then I discovered Tilde.
Tilde is like the best of both worlds. It has that old MS-Edit aesthetic but includes things like syntax highlighting and markdown support. Best of all, it runs on modern Unix-like operating systems (and Windows via WSL).
While I know these kinds of tools aren’t for everyone, I know many of us love and appreciate the command line so I wanted to share them with you. During Command Line Week I made good use of all of them as I started compiling recipes to help me improve in the kitchen. I used:
Links to find and view recipes, and to download photos of what each one made.
Tilde to transcribe the ingredients and instructions, and
Ranger to help organize the photos and documents.
Conclusion
It’s 2022. The use of purely command line web browsers is limited, and many people wouldn’t have any use for them. But for those of us who appreciate the finer things, I’d encourage you to give them a go, and to share your thoughts along with recommendations for other FOSS command line software.
Hi Dan, good article and congratulations on the command line week. DOS is still a very good piece of software . I missed Norton commander on your list and I suggest it's Linux clone MC (midnight commander) on Linux which I use for more than 20 years now, and it's something that I never let out of any Linux installation I put my hands on. It's damn small and comes with its own editor if you need. Talking about editors, MS-DOS Edit is indeed open source now (https://github.com/microsoft/MS-DOS). MS does not work on the code anymore, but it's free to fork (MIT Lic.); completely in Assembler, maybe one day we can port it to Linux, but it runs under dos-emu if you like. The MS-DOS editor started to be shipped with DOS 5 and was a small version of QBASIC( gorilas.bas!!) after Windows 95 it became a stand-alone program. Good times!